Mercurial > hg
changeset 11327:6c469f2f9f12
mq: use ui.formatted() instead of ui.plain().
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Mon, 07 Jun 2010 15:33:03 +0200 |
parents | c89309fa907d |
children | d357d147f0d4 |
files | hgext/mq.py tests/test-mq |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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