Mercurial > public > mercurial-scm > hg-stable
diff hgext/progress.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 | 646eb9337c87 |
children | f139f34ba330 |
line wrap: on
line diff
--- 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):