From patchwork Thu Feb 16 02:12:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6,of,9,pager] ui: respect historic pager.attend-$COMMAND=no From: Augie Fackler X-Patchwork-Id: 18539 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Wed, 15 Feb 2017 21:12:38 -0500 # HG changeset patch # User Augie Fackler # Date 1486442524 18000 # Mon Feb 06 23:42:04 2017 -0500 # Node ID cfa569ed77883c41aecb3eaaa42876a5b0b7c52a # Parent 78410f8a924623287609eacf70bd4912b17a01bf 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. diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -818,6 +818,7 @@ class ui(object): 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()