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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue May 2 11:35:44 EDT 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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.

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.


More information about the Mercurial-devel mailing list