Patchwork D3086: pull: pass rev to check out as integer to postincoming()

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 1:30 p.m.
Message ID <2ef75a10ff25ffb4543efe95938b125c@localhost.localdomain>
Download mbox | patch
Permalink /patch/30366/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2018, 1:30 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd5e1678026fd: pull: pass rev to check out as integer to postincoming() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3086?vs=7660&id=7717

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

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4034,7 +4034,7 @@ 
             brev = None
 
             if checkout:
-                checkout = "%d" % repo.changelog.rev(checkout)
+                checkout = repo.changelog.rev(checkout)
 
                 # order below depends on implementation of
                 # hg.addbranchrevs(). opts['bookmark'] is ignored,