py3: use '%d' to convert integer to bytes
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 19 Feb 2018 15:26:07 +0530
changeset 36323 920bbfb686da
parent 36322 f3fd4fe0506f
child 36324 ac04f17b7041
py3: use '%d' to convert integer to bytes Differential Revision: https://phab.mercurial-scm.org/D2349
mercurial/commands.py
--- 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,