mq: toggle truncating using ui.plain() rather than ui.interactive() stable
authorDan Villiom Podlaski Christiansen <danchr@gmail.com>
Thu, 15 Apr 2010 14:06:07 +0200
branchstable
changeset 10946 214a518a4b6e
parent 10944 6f1894d6a6b0
child 10947 ede19417c3c4
mq: toggle truncating using ui.plain() rather than ui.interactive() This enables truncated messages when using `qseries' with the `pager' extension.
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)