##// END OF EJS Templates
ui: fix NameError in ui.progress due to unit/units typo
Brodie Rao -
r9398:3fb8c6db default
parent child Browse files
Show More
@@ -358,7 +358,7 b' class ui(object):'
358 358 visible. 'topic' is the current operation, 'item' is a
359 359 non-numeric marker of the current position (ie the currently
360 360 in-process file), 'pos' is the current numeric position (ie
361 revision, bytes, etc.), units is a corresponding unit label,
361 revision, bytes, etc.), unit is a corresponding unit label,
362 362 and total is the highest expected pos.
363 363
364 364 Multiple nested topics may be active at a time. All topics
@@ -368,14 +368,14 b' class ui(object):'
368 368 if pos == None or not self.debugflag:
369 369 return
370 370
371 if units:
372 units = ' ' + units
371 if unit:
372 unit = ' ' + unit
373 373 if item:
374 374 item = ' ' + item
375 375
376 376 if total:
377 377 pct = 100.0 * pos / total
378 378 ui.debug('%s:%s %s/%s%s (%4.2g%%)\n'
379 % (topic, item, pos, total, units, pct))
379 % (topic, item, pos, total, unit, pct))
380 380 else:
381 ui.debug('%s:%s %s%s\n' % (topic, item, pos, units))
381 ui.debug('%s:%s %s%s\n' % (topic, item, pos, unit))
General Comments 0
You need to be logged in to leave comments. Login now