diff 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
line wrap: on
line diff
--- a/mercurial/dispatch.py	Wed Feb 15 17:47:57 2017 -0500
+++ b/mercurial/dispatch.py	Wed Feb 15 17:48:03 2017 -0500
@@ -749,6 +749,9 @@
             for ui_ in uis:
                 ui_.setconfig('ui', 'interactive', 'off', '-y')
 
+        if options['pager'] != 'auto' and not util.parsebool(options['pager']):
+            ui.neverpager()
+
         if cmdoptions.get('insecure', False):
             for ui_ in uis:
                 ui_.insecureconnections = True