comparison mercurial/hg.py @ 37313:70c52800940b

outgoing: avoid repo.lookup() for converting revnum to nodeid Differential Revision: https://phab.mercurial-scm.org/D3053
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 01 Apr 2018 23:27:50 -0700
parents 54435fd09f1d
children c569e51ee449
comparison
equal deleted inserted replaced
37312:e47bd4c71c5e 37313:70c52800940b
955 branches = path.branch, opts.get('branch') or [] 955 branches = path.branch, opts.get('branch') or []
956 956
957 ui.status(_('comparing with %s\n') % util.hidepassword(dest)) 957 ui.status(_('comparing with %s\n') % util.hidepassword(dest))
958 revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev')) 958 revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev'))
959 if revs: 959 if revs:
960 revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)] 960 revs = [repo[rev].node() for rev in scmutil.revrange(repo, revs)]
961 961
962 other = peer(repo, opts, dest) 962 other = peer(repo, opts, dest)
963 outgoing = discovery.findcommonoutgoing(repo, other, revs, 963 outgoing = discovery.findcommonoutgoing(repo, other, revs,
964 force=opts.get('force')) 964 force=opts.get('force'))
965 o = outgoing.missing 965 o = outgoing.missing