Mercurial > hg-stable
changeset 10946:214a518a4b6e stable
mq: toggle truncating using ui.plain() rather than ui.interactive()
This enables truncated messages when using `qseries' with the `pager'
extension.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Thu, 15 Apr 2010 14:06:07 +0200 |
parents | 6f1894d6a6b0 |
children | ede19417c3c4 |
files | hgext/mq.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Mon Apr 19 20:41:53 2010 +0200 +++ b/hgext/mq.py Thu Apr 15 14:06:07 2010 +0200 @@ -1430,7 +1430,7 @@ if summary: ph = patchheader(self.join(patchname), self.plainmode) msg = ph.message and ph.message[0] or '' - if self.ui.interactive(): + if not self.ui.plain(): width = util.termwidth() - len(pfx) - len(patchname) - 2 if width > 0: msg = util.ellipsis(msg, width)