changeset 31017:29a4a8d01bc9

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.
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 23:42:04 -0500
parents cc3c9b6f1e09
children 75e325ce538e
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()