mercurial/commands.py
changeset 36356 920bbfb686da
parent 36292 2892c1d47f30
child 36428 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,