mq: use ui.formatted() instead of ui.plain().
authorDan Villiom Podlaski Christiansen <danchr@gmail.com>
Mon, 07 Jun 2010 15:33:03 +0200
changeset 11327 6c469f2f9f12
parent 11326 c89309fa907d
child 11328 d357d147f0d4
mq: use ui.formatted() instead of ui.plain().
hgext/mq.py
tests/test-mq
--- a/hgext/mq.py	Mon Jun 07 15:28:54 2010 +0200
+++ b/hgext/mq.py	Mon Jun 07 15:33:03 2010 +0200
@@ -1422,7 +1422,7 @@
             if summary:
                 ph = patchheader(self.join(patchname), self.plainmode)
                 msg = ph.message and ph.message[0] or ''
-                if not self.ui.plain():
+                if self.ui.formatted():
                     width = util.termwidth() - len(pfx) - len(patchname) - 2
                     if width > 0:
                         msg = util.ellipsis(msg, width)
--- a/tests/test-mq	Mon Jun 07 15:28:54 2010 +0200
+++ b/tests/test-mq	Mon Jun 07 15:33:03 2010 +0200
@@ -166,10 +166,10 @@
 hg qpop -a
 hg --traceback qpush -a
 
-# setting columns & interactive tests truncating (issue1912)
+# setting columns & formatted tests truncating (issue1912)
 echo % qseries
-COLUMNS=4 hg qseries --config ui.interactive=true
-COLUMNS=20 hg qseries --config ui.interactive=true -vs
+COLUMNS=4 hg qseries --config ui.formatted=true
+COLUMNS=20 hg qseries --config ui.formatted=true -vs
 hg qpop
 hg qseries -vs
 hg sum | grep mq