# HG changeset patch # User Brodie Rao # Date 2010-02-20 03:16:42 # Node ID 80a1161bc3b5409927f8f0f6024b7214c22aebb8 # Parent 98bc3e195720bd80193d8017ea88fff6d474d44c pager: set ui.interactive=False when enabled This stops interactive-only things like progress bars from showing up inside the pager. diff --git a/hgext/pager.py b/hgext/pager.py --- a/hgext/pager.py +++ b/hgext/pager.py @@ -59,6 +59,7 @@ def uisetup(ui): 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)