Mercurial > hg-stable
changeset 9398:3fb8c6dbeeec
ui: fix NameError in ui.progress due to unit/units typo
author | Brodie Rao <me+hg@dackz.net> |
---|---|
date | Tue, 18 Aug 2009 14:47:41 -0400 |
parents | 5b117c90f036 |
children | f60f6f41978e |
files | mercurial/ui.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Wed Jul 29 14:21:18 2009 +0200 +++ b/mercurial/ui.py Tue Aug 18 14:47:41 2009 -0400 @@ -358,7 +358,7 @@ visible. 'topic' is the current operation, 'item' is a non-numeric marker of the current position (ie the currently in-process file), 'pos' is the current numeric position (ie - revision, bytes, etc.), units is a corresponding unit label, + revision, bytes, etc.), unit is a corresponding unit label, and total is the highest expected pos. Multiple nested topics may be active at a time. All topics @@ -368,14 +368,14 @@ if pos == None or not self.debugflag: return - if units: - units = ' ' + units + if unit: + unit = ' ' + unit if item: item = ' ' + item if total: pct = 100.0 * pos / total ui.debug('%s:%s %s/%s%s (%4.2g%%)\n' - % (topic, item, pos, total, units, pct)) + % (topic, item, pos, total, unit, pct)) else: - ui.debug('%s:%s %s%s\n' % (topic, item, pos, units)) + ui.debug('%s:%s %s%s\n' % (topic, item, pos, unit))