py3: use '%d' instead of '%s' for integers
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 17 Jun 2017 14:53:25 +0530
changeset 32913 05c213cd8ab8
parent 32912 ec9ed269edc3
child 32914 e14484e7f562
py3: use '%d' instead of '%s' for integers Python 3 does not let you use '%s' for integers.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Sat Jun 17 14:39:10 2017 +0530
+++ b/mercurial/localrepo.py	Sat Jun 17 14:53:25 2017 +0530
@@ -1174,11 +1174,11 @@
             oldtip = oldlen - 1
 
             if detail and ui.verbose:
-                msg = (_('repository tip rolled back to revision %s'
+                msg = (_('repository tip rolled back to revision %d'
                          ' (undo %s: %s)\n')
                        % (oldtip, desc, detail))
             else:
-                msg = (_('repository tip rolled back to revision %s'
+                msg = (_('repository tip rolled back to revision %d'
                          ' (undo %s)\n')
                        % (oldtip, desc))
         except IOError: