Patchwork D3047: push: avoid using repo.lookup() for converting to nodeid

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 11:24 p.m.
Message ID <7b6348ed7936458436910fc7d94e2d93@localhost.localdomain>
Download mbox | patch
Permalink /patch/30222/
State Not Applicable
Headers show

Comments

phabricator - April 3, 2018, 11:24 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4d69668a65d8: push: avoid using repo.lookup() for converting to nodeid (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3047?vs=7578&id=7587

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

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4148,7 +4148,7 @@ 
     other = hg.peer(repo, opts, dest)
 
     if revs:
-        revs = [repo.lookup(r) for r in scmutil.revrange(repo, revs)]
+        revs = [repo[r].node() for r in scmutil.revrange(repo, revs)]
         if not revs:
             raise error.Abort(_("specified revisions evaluate to an empty set"),
                              hint=_("use different revision arguments"))