mq: use ui.formatted() instead of ui.plain().
--- 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