comparison mercurial/ui.py @ 32105:2384a6546927 stable

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.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 02 May 2017 17:18:13 +0200
parents f06d23af6cdf
children 420e93b0d9dc
comparison
equal deleted inserted replaced
32104:f06d23af6cdf 32105:2384a6546927
854 not "history, "summary" not "summ", etc. 854 not "history, "summary" not "summ", etc.
855 """ 855 """
856 if (self._disablepager 856 if (self._disablepager
857 or self.pageractive 857 or self.pageractive
858 or command in self.configlist('pager', 'ignore') 858 or command in self.configlist('pager', 'ignore')
859 or not self.configbool('ui', 'paginate', 859 or not self.configbool('ui', 'paginate', True)
860 self.configbool('pager', 'enable', True))
861 or not self.configbool('pager', 'attend-' + command, True) 860 or not self.configbool('pager', 'attend-' + command, True)
862 # TODO: if we want to allow HGPLAINEXCEPT=pager, 861 # TODO: if we want to allow HGPLAINEXCEPT=pager,
863 # formatted() will need some adjustment. 862 # formatted() will need some adjustment.
864 or not self.formatted() 863 or not self.formatted()
865 or self.plain() 864 or self.plain()