Mercurial > hg
changeset 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 | 98bc3e195720 |
children | 13448eab08ca |
files | hgext/pager.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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)