[PATCH] pager: respect HGPLAIN
Yuya Nishihara
yuya at tcha.org
Sat Jun 19 11:21:04 CDT 2010
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1276964412 -32400
# Node ID 4e9672a79c6af3d9b1d4940c2f35bce92c12c526
# Parent e5a2134c083b223bd2998b6694e430e4999caee3
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:
More information about the Mercurial-devel
mailing list