Patchwork [4,of,4,STABLE,V3] pager: drop the support for 'pager.enable=<bool>'

login
register
mail settings
Submitter Pierre-Yves David
Date May 2, 2017, 3:35 p.m.
Message ID <10058195c925267fa10b.1493739344@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20348/
State Accepted
Headers show

Comments

Pierre-Yves David - May 2, 2017, 3:35 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1493738293 -7200
#      Tue May 02 17:18:13 2017 +0200
# Branch stable
# Node ID 10058195c925267fa10b19b798a725d4017e19be
# Parent  6658075e3b3b3cbbeff2beb1e9cef5c478d9a592
# EXP-Topic pager
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 10058195c925
pager: drop the support for 'pager.enable=<bool>'

This option was never released except for a release candidate. Dropping
compatibility with this option will free the 'pager.enable' config option for
other usage in the future.

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -856,8 +856,7 @@  class ui(object):
         if (self._disablepager
             or self.pageractive
             or command in self.configlist('pager', 'ignore')
-            or not self.configbool('ui', 'paginate',
-                                   self.configbool('pager', 'enable', True))
+            or not self.configbool('ui', 'paginate', True)
             or not self.configbool('pager', 'attend-' + command, True)
             # TODO: if we want to allow HGPLAINEXCEPT=pager,
             # formatted() will need some adjustment.