Patchwork D3053: outgoing: avoid repo.lookup() for converting revnum to nodeid

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

Comments

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

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3053?vs=7584&id=7593

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

AFFECTED FILES
  mercurial/hg.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -957,7 +957,7 @@ 
     ui.status(_('comparing with %s\n') % util.hidepassword(dest))
     revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev'))
     if revs:
-        revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)]
+        revs = [repo[rev].node() for rev in scmutil.revrange(repo, revs)]
 
     other = peer(repo, opts, dest)
     outgoing = discovery.findcommonoutgoing(repo, other, revs,