Mercurial > hg
changeset 11183:b25464e9b448
patchbomb: respect HGPLAIN when piping --test output to PAGER
It makes easy to use `hg email --test` from another tool.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 16 May 2010 22:23:14 +0900 |
parents | 6e65b451b62e |
children | 7d99edddbaea |
files | hgext/patchbomb.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/patchbomb.py Sat May 15 21:24:23 2010 -0500 +++ b/hgext/patchbomb.py Sun May 16 22:23:14 2010 +0900 @@ -450,7 +450,7 @@ if opts.get('test'): ui.status(_('Displaying '), subj, ' ...\n') ui.flush() - if 'PAGER' in os.environ: + if 'PAGER' in os.environ and not ui.plain(): fp = util.popen(os.environ['PAGER'], 'w') else: fp = ui