[PATCH 5 of 5] pager: set ui.formatted() prior to redirecting stdout
Dan Villiom Podlaski Christiansen
danchr at gmail.com
Mon Jun 7 09:23:51 CDT 2010
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1275917688 -7200
# Node ID 0585b1e7918067f2c2a4f5ccb418fd399b72f981
# Parent 1093e4ca31fe226c174e1ab9243b2929477ca8f7
pager: set ui.formatted() prior to redirecting stdout.
diff --git a/hgext/pager.py b/hgext/pager.py
--- a/hgext/pager.py
+++ b/hgext/pager.py
@@ -84,6 +84,7 @@ def uisetup(ui):
attend = ui.configlist('pager', 'attend', attended)
if (cmd in attend or
(cmd not in ui.configlist('pager', 'ignore') and not attend)):
+ ui.setconfig('ui', 'formatted', ui.formatted())
ui.setconfig('ui', 'interactive', False)
_runpager(p)
if ui.configbool('pager', 'quiet'):
More information about the Mercurial-devel
mailing list