pager: set ui.interactive=False when enabled stable
authorBrodie Rao <me+hg@dackz.net>
Fri, 19 Feb 2010 22:16:42 -0500
branchstable
changeset 10516 80a1161bc3b5
parent 10515 98bc3e195720
child 10517 13448eab08ca
pager: set ui.interactive=False when enabled This stops interactive-only things like progress bars from showing up inside the pager.
hgext/pager.py
--- 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)