diff mercurial/cmdutil.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 7178f6fedb9d
children 642afc8f50e7
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Thu Oct 07 23:34:21 2010 -0500
+++ b/mercurial/cmdutil.py	Sun Oct 10 10:06:36 2010 -0500
@@ -706,7 +706,7 @@
         diffopts = diffopts.copy(context=0)
         width = 80
         if not ui.plain():
-            width = util.termwidth()
+            width = ui.termwidth()
         chunks = patch.diff(repo, node1, node2, match, changes, diffopts,
                             prefix=prefix)
         for chunk, label in patch.diffstatui(util.iterlines(chunks),