Patchwork D2349: py3: use '%d' to convert integer to bytes

login
register
mail settings
Submitter phabricator
Date Feb. 19, 2018, 4:05 p.m.
Message ID <differential-rev-PHID-DREV-erptamleyzb3ftd3cjq3-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28157/
State Superseded
Headers show

Comments

phabricator - Feb. 19, 2018, 4:05 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2349

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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,