mercurial/progress.py
changeset 36151 d541042f32f6
parent 34746 54fa3db5becf
child 36152 7f5108e58083
--- a/mercurial/progress.py	Tue Feb 13 08:41:42 2018 -0500
+++ b/mercurial/progress.py	Tue Feb 13 08:43:14 2018 -0500
@@ -119,8 +119,8 @@
                 add = topic
             elif indicator == 'number':
                 if total:
-                    add = ('% ' + str(len(str(total))) +
-                           's/%s') % (pos, total)
+                    padamount = '%d' % len(str(total))
+                    add = ('% '+ padamount + 's/%s') % (pos, total)
                 else:
                     add = str(pos)
             elif indicator.startswith('item') and item: