changeset 34271:a254c669b475

ui: fix progress debug log format strings to work on Python 3
author Augie Fackler <augie@google.com>
date Mon, 18 Sep 2017 13:37:00 -0400
parents 3db2365d43e4
children 53fb09c73ba8
files mercurial/ui.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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