# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1271333167 -7200 # Node ID 214a518a4b6e21cd3b122c968e34ed06588bc509 # Parent 6f1894d6a6b0e6346dff5e42e919107d64ac8723 mq: toggle truncating using ui.plain() rather than ui.interactive() This enables truncated messages when using `qseries' with the `pager' extension. diff -r 6f1894d6a6b0 -r 214a518a4b6e hgext/mq.py --- 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)