mq: toggle truncating using ui.plain() rather than ui.interactive()
This enables truncated messages when using `qseries' with the `pager'
extension.
--- 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)