# HG changeset patch # User Yuya Nishihara # Date 2010-06-19 16:20:12 # Node ID 0fa4474bdc2ff7738460a4905ef6ad317bc4d03d # Parent 4c1fe996838cddd65cf95347f1e0897dc4e4d66c pager: respect HGPLAIN Pager shouldn't be enabled for scripting use. diff --git a/hgext/pager.py b/hgext/pager.py --- a/hgext/pager.py +++ b/hgext/pager.py @@ -78,6 +78,9 @@ def _runpager(p): 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: