mercurial/commands.py
changeset 36323 920bbfb686da
parent 36259 2892c1d47f30
child 36398 eb73f8a6177e
--- a/mercurial/commands.py	Mon Feb 19 12:48:50 2018 +0800
+++ b/mercurial/commands.py	Mon Feb 19 15:26:07 2018 +0530
@@ -4014,7 +4014,7 @@
             brev = None
 
             if checkout:
-                checkout = str(repo.changelog.rev(checkout))
+                checkout = "%d" % repo.changelog.rev(checkout)
 
                 # order below depends on implementation of
                 # hg.addbranchrevs(). opts['bookmark'] is ignored,