pager: set ui.formatted() prior to redirecting stdout.
authorDan Villiom Podlaski Christiansen <danchr@gmail.com>
Mon, 07 Jun 2010 15:34:48 +0200
changeset 11328 d357d147f0d4
parent 11327 6c469f2f9f12
child 11329 390518de232e
pager: set ui.formatted() prior to redirecting stdout.
hgext/pager.py
--- a/hgext/pager.py	Mon Jun 07 15:33:03 2010 +0200
+++ b/hgext/pager.py	Mon Jun 07 15:34:48 2010 +0200
@@ -84,6 +84,7 @@
             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'):