diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
index ec9ed269edc330e7bcc14a184d3d6dd630756bf6_bWVyY3VyaWFsL2xvY2FscmVwby5weQ==..05c213cd8ab8d54496d37dee5859c407465533f2_bWVyY3VyaWFsL2xvY2FscmVwby5weQ== 100644
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1174,7 +1174,7 @@
             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:
@@ -1178,7 +1178,7 @@
                          ' (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: