diff hgext/churn.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 fddacca3202e
children 2506658c3927
line wrap: on
line diff
--- a/hgext/churn.py	Thu Oct 07 23:34:21 2010 -0500
+++ b/hgext/churn.py	Sun Oct 10 10:06:36 2010 -0500
@@ -149,7 +149,7 @@
     maxcount = float(max(sum(v) for k, v in rate)) or 1.0
     maxname = max(len(k) for k, v in rate)
 
-    ttywidth = util.termwidth()
+    ttywidth = ui.termwidth()
     ui.debug("assuming %i character terminal\n" % ttywidth)
     width = ttywidth - maxname - 2 - 2 - 2