diff -r 8c034a825cfe -r c52c629ce19e hgext/progress.py --- a/hgext/progress.py Thu Oct 07 23:34:21 2010 -0500 +++ b/hgext/progress.py Sun Oct 10 10:06:36 2010 -0500 @@ -156,7 +156,7 @@ sys.stderr.flush() def width(self): - tw = util.termwidth() + tw = self.ui.termwidth() return min(int(self.ui.config('progress', 'width', default=tw)), tw) def progress(self, topic, pos, item='', unit='', total=None):