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

login
register
mail settings
Submitter phabricator
Date Feb. 20, 2018, 1:34 p.m.
Message ID <04091ce0aef79a2e0aad559a4756f720@localhost.localdomain>
Download mbox | patch
Permalink /patch/28174/
State Not Applicable
Headers show

Comments

phabricator - Feb. 20, 2018, 1:34 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG920bbfb686da: py3: use &#039;%d&#039; to convert integer to bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2349?vs=5917&id=5927

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

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
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,