Mercurial > hg-stable
diff hgext/mq.py @ 12689:c52c629ce19e
termwidth: move to ui.ui from util
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 10 Oct 2010 10:06:36 -0500 |
parents | 58a3e2608ae4 |
children | db79d3627872 |
line wrap: on
line diff
--- a/hgext/mq.py Thu Oct 07 23:34:21 2010 -0500 +++ b/hgext/mq.py Sun Oct 10 10:06:36 2010 -0500 @@ -1437,7 +1437,7 @@ ph = patchheader(self.join(patchname), self.plainmode) msg = ph.message and ph.message[0] or '' if self.ui.formatted(): - width = util.termwidth() - len(pfx) - len(patchname) - 2 + width = self.ui.termwidth() - len(pfx) - len(patchname) - 2 if width > 0: msg = util.ellipsis(msg, width) else: