# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1275917583 -7200 # Node ID 6c469f2f9f1227eb301d28f211a8155fff34ed17 # Parent c89309fa907df045bbb9b9ddf90add1e0b9168b9 mq: use ui.formatted() instead of ui.plain(). diff -r c89309fa907d -r 6c469f2f9f12 hgext/mq.py --- 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) diff -r c89309fa907d -r 6c469f2f9f12 tests/test-mq --- 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