diff hgext/pager.py @ 10516:80a1161bc3b5 stable

pager: set ui.interactive=False when enabled This stops interactive-only things like progress bars from showing up inside the pager.
author Brodie Rao <me+hg@dackz.net>
date Fri, 19 Feb 2010 22:16:42 -0500
parents 25e572394f5c
children 49a07f441496 3c368a1c962d
line wrap: on
line diff
--- a/hgext/pager.py	Fri Feb 19 20:34:23 2010 -0500
+++ b/hgext/pager.py	Fri Feb 19 22:16:42 2010 -0500
@@ -59,6 +59,7 @@
             attend = ui.configlist('pager', 'attend', attended)
             if (cmd in attend or
                 (cmd not in ui.configlist('pager', 'ignore') and not attend)):
+                ui.setconfig('ui', 'interactive', False)
                 sys.stderr = sys.stdout = util.popen(p, "wb")
                 if ui.configbool('pager', 'quiet'):
                     signal.signal(signal.SIGPIPE, signal.SIG_DFL)