comparison mercurial/ui.py @ 30997: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 5e85bab867a7
children 75e325ce538e
comparison
equal deleted inserted replaced
30996:cc3c9b6f1e09 30997:29a4a8d01bc9
850 not "history, "summary" not "summ", etc. 850 not "history, "summary" not "summ", etc.
851 """ 851 """
852 if (self._neverpager 852 if (self._neverpager
853 or self.pageractive 853 or self.pageractive
854 or command in self.configlist('pager', 'ignore') 854 or command in self.configlist('pager', 'ignore')
855 or not self.configbool('pager', 'attend-' + command, True)
855 # TODO: if we want to allow HGPLAINEXCEPT=pager, 856 # TODO: if we want to allow HGPLAINEXCEPT=pager,
856 # formatted() will need some adjustment. 857 # formatted() will need some adjustment.
857 or not self.formatted() 858 or not self.formatted()
858 or self.plain() 859 or self.plain()
859 # TODO: expose debugger-enabled on the UI object 860 # TODO: expose debugger-enabled on the UI object