comparison mercurial/ui.py @ 30998:75e325ce538e

ui: add a debug print right before we start the pager This makes it easier to figure out why a command is getting paginated.
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 23:55:54 -0500
parents 29a4a8d01bc9
children 219629d42786
comparison
equal deleted inserted replaced
30997:29a4a8d01bc9 30998:75e325ce538e
861 or '--debugger' in sys.argv): 861 or '--debugger' in sys.argv):
862 # We only want to paginate if the ui appears to be 862 # We only want to paginate if the ui appears to be
863 # interactive, the user didn't say HGPLAIN or 863 # interactive, the user didn't say HGPLAIN or
864 # HGPLAINEXCEPT=pager, and the user didn't specify --debug. 864 # HGPLAINEXCEPT=pager, and the user didn't specify --debug.
865 return 865 return
866 self.debug('starting pager for command %r\n' % command)
866 867
867 # TODO: add a "system defaults" config section so this default 868 # TODO: add a "system defaults" config section so this default
868 # of more(1) can be easily replaced with a global 869 # of more(1) can be easily replaced with a global
869 # configuration file. For example, on OS X the sane default is 870 # configuration file. For example, on OS X the sane default is
870 # less(1), not more(1), and on debian it's 871 # less(1), not more(1), and on debian it's