Show More
@@ -358,7 +358,7 b' class ui(object):' | |||||
358 | visible. 'topic' is the current operation, 'item' is a |
|
358 | visible. 'topic' is the current operation, 'item' is a | |
359 | non-numeric marker of the current position (ie the currently |
|
359 | non-numeric marker of the current position (ie the currently | |
360 | in-process file), 'pos' is the current numeric position (ie |
|
360 | in-process file), 'pos' is the current numeric position (ie | |
361 |
revision, bytes, etc.), unit |
|
361 | revision, bytes, etc.), unit is a corresponding unit label, | |
362 | and total is the highest expected pos. |
|
362 | and total is the highest expected pos. | |
363 |
|
363 | |||
364 | Multiple nested topics may be active at a time. All topics |
|
364 | Multiple nested topics may be active at a time. All topics | |
@@ -368,14 +368,14 b' class ui(object):' | |||||
368 | if pos == None or not self.debugflag: |
|
368 | if pos == None or not self.debugflag: | |
369 | return |
|
369 | return | |
370 |
|
370 | |||
371 |
if unit |
|
371 | if unit: | |
372 |
unit |
|
372 | unit = ' ' + unit | |
373 | if item: |
|
373 | if item: | |
374 | item = ' ' + item |
|
374 | item = ' ' + item | |
375 |
|
375 | |||
376 | if total: |
|
376 | if total: | |
377 | pct = 100.0 * pos / total |
|
377 | pct = 100.0 * pos / total | |
378 | ui.debug('%s:%s %s/%s%s (%4.2g%%)\n' |
|
378 | ui.debug('%s:%s %s/%s%s (%4.2g%%)\n' | |
379 |
% (topic, item, pos, total, unit |
|
379 | % (topic, item, pos, total, unit, pct)) | |
380 | else: |
|
380 | else: | |
381 |
ui.debug('%s:%s %s%s\n' % (topic, item, pos, unit |
|
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