comparison mercurial/dispatch.py @ 30994:3ed6e43998df

ui: introduce neverpager() call I'm about to add direct paging support to some commands, and as a result we need a way to communicate from the higher layers of dispatch that paging is explicitly disabled.
author Augie Fackler <augie@google.com>
date Wed, 15 Feb 2017 17:48:03 -0500
parents 9c2977ceaa46
children 9c827087df38
comparison
equal deleted inserted replaced
30993:9c2977ceaa46 30994:3ed6e43998df
746 ui_.setconfig('ui', 'traceback', 'on', '--traceback') 746 ui_.setconfig('ui', 'traceback', 'on', '--traceback')
747 747
748 if options['noninteractive']: 748 if options['noninteractive']:
749 for ui_ in uis: 749 for ui_ in uis:
750 ui_.setconfig('ui', 'interactive', 'off', '-y') 750 ui_.setconfig('ui', 'interactive', 'off', '-y')
751
752 if options['pager'] != 'auto' and not util.parsebool(options['pager']):
753 ui.neverpager()
751 754
752 if cmdoptions.get('insecure', False): 755 if cmdoptions.get('insecure', False):
753 for ui_ in uis: 756 for ui_ in uis:
754 ui_.insecureconnections = True 757 ui_.insecureconnections = True
755 758