diff mercurial/localrepo.py @ 32913:05c213cd8ab8

py3: use '%d' instead of '%s' for integers Python 3 does not let you use '%s' for integers.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 17 Jun 2017 14:53:25 +0530
parents 6fa245f80b6f
children edb7f628ef8b
line wrap: on
line diff
--- 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: