Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 9749:1b1b33ae5a24
Related to Issue919: ui.progress, apparently unused before now, is busted.
author | Jesse Glick <jesse.glick@sun.com> |
---|---|
date | Thu, 05 Nov 2009 16:40:48 -0500 |
parents | c63c336ee2f7 |
children | 951730b2b8ba |
comparison
equal
deleted
inserted
replaced
9748:67e5d5a2f625 | 9749:1b1b33ae5a24 |
---|---|
375 if item: | 375 if item: |
376 item = ' ' + item | 376 item = ' ' + item |
377 | 377 |
378 if total: | 378 if total: |
379 pct = 100.0 * pos / total | 379 pct = 100.0 * pos / total |
380 ui.debug('%s:%s %s/%s%s (%4.2g%%)\n' | 380 self.debug('%s:%s %s/%s%s (%4.2g%%)\n' |
381 % (topic, item, pos, total, unit, pct)) | 381 % (topic, item, pos, total, unit, pct)) |
382 else: | 382 else: |
383 ui.debug('%s:%s %s%s\n' % (topic, item, pos, unit)) | 383 self.debug('%s:%s %s%s\n' % (topic, item, pos, unit)) |