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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Feb 20 08:34:13 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG920bbfb686da: py3: use '%d' 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

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,



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


More information about the Mercurial-devel mailing list