Mercurial > public > mercurial-scm > hg
diff hgext/pager.py @ 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 | d357d147f0d4 |
children | ebfc46929f3e |
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: