[PATCH 1 of 2] Related to Issue919: ui.progress, apparently unused before now, is busted

Jesse Glick typrase at gmail.com
Thu Nov 5 15:48:21 CST 2009


# HG changeset patch
# User Jesse Glick <jesse.glick at sun.com>
# Date 1257457248 18000
# Node ID 1308731835ae484a708ec42bae6ebc692970d0f0
# Parent  3f522d2fa6332443043cbfa65acbbefdaf19f53b
Related to Issue919: ui.progress, apparently unused before now, is busted.

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -377,7 +377,7 @@
 
         if total:
             pct = 100.0 * pos / total
-            ui.debug('%s:%s %s/%s%s (%4.2g%%)\n'
+            self.debug('%s:%s %s/%s%s (%4.2g%%)\n'
                      % (topic, item, pos, total, unit, pct))
         else:
-            ui.debug('%s:%s %s%s\n' % (topic, item, pos, unit))
+            self.debug('%s:%s %s%s\n' % (topic, item, pos, unit))


More information about the Mercurial-devel mailing list