Mercurial > hg
changeset 11414:0fa4474bdc2f
pager: respect HGPLAIN
Pager shouldn't be enabled for scripting use.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 20 Jun 2010 01:20:12 +0900 |
parents | 4c1fe996838c |
children | a1e575b48563 |
files | hgext/pager.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/pager.py Wed Jun 16 00:37:21 2010 +0200 +++ b/hgext/pager.py Sun Jun 20 01:20:12 2010 +0900 @@ -78,6 +78,9 @@ raise def uisetup(ui): + if ui.plain(): + return + def pagecmd(orig, ui, options, cmd, cmdfunc): p = ui.config("pager", "pager", os.environ.get("PAGER")) if p and sys.stdout.isatty() and '--debugger' not in sys.argv: