py3: use '%d' instead of '%s' for integers
Python 3 does not let you use '%s' for integers.
--- 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: