##// END OF EJS Templates
pager: do not read from environment variable...
Jun Wu -
r31688:c5fe0c7d default
parent child Browse files
Show More
@@ -849,14 +849,8 b' class ui(object):'
849 849 # HGPLAINEXCEPT=pager, and the user didn't specify --debug.
850 850 return
851 851
852 # TODO: add a "system defaults" config section so this default
853 # of more(1) can be easily replaced with a global
854 # configuration file. For example, on OS X the sane default is
855 # less(1), not more(1), and on debian it's
856 # sensible-pager(1). We should probably also give the system
857 # default editor command similar treatment.
858 envpager = encoding.environ.get('PAGER', 'more')
859 pagercmd = self.config('pager', 'pager', envpager)
852 fallbackpager = 'more'
853 pagercmd = self.config('pager', 'pager', fallbackpager)
860 854 if not pagercmd:
861 855 return
862 856
General Comments 0
You need to be logged in to leave comments. Login now