ui: fix progress debug log format strings to work on Python 3
authorAugie Fackler <augie@google.com>
Mon, 18 Sep 2017 13:37:00 -0400
changeset 34271 a254c669b475
parent 34270 3db2365d43e4
child 34272 53fb09c73ba8
ui: fix progress debug log format strings to work on Python 3
mercurial/ui.py
--- a/mercurial/ui.py	Mon Sep 18 13:37:32 2017 -0400
+++ b/mercurial/ui.py	Mon Sep 18 13:37:00 2017 -0400
@@ -1521,10 +1521,10 @@
 
         if total:
             pct = 100.0 * pos / total
-            self.debug('%s:%s %s/%s%s (%4.2f%%)\n'
+            self.debug('%s:%s %d/%d%s (%4.2f%%)\n'
                      % (topic, item, pos, total, unit, pct))
         else:
-            self.debug('%s:%s %s%s\n' % (topic, item, pos, unit))
+            self.debug('%s:%s %d%s\n' % (topic, item, pos, unit))
 
     def log(self, service, *msg, **opts):
         '''hook for logging facility extensions