ui: respect historic pager.attend-$COMMAND=no
authorAugie Fackler <augie@google.com>
Mon, 06 Feb 2017 23:42:04 -0500
changeset 30997 29a4a8d01bc9
parent 30996 cc3c9b6f1e09
child 30998 75e325ce538e
ui: respect historic pager.attend-$COMMAND=no I'm on the fence about this behavior, but the user's intent was pretty specific and it's not expensive to support this case.
mercurial/ui.py
--- a/mercurial/ui.py	Mon Feb 06 23:45:30 2017 -0500
+++ b/mercurial/ui.py	Mon Feb 06 23:42:04 2017 -0500
@@ -852,6 +852,7 @@
         if (self._neverpager
             or self.pageractive
             or command in self.configlist('pager', 'ignore')
+            or not self.configbool('pager', 'attend-' + command, True)
             # TODO: if we want to allow HGPLAINEXCEPT=pager,
             # formatted() will need some adjustment.
             or not self.formatted()