Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG0b4692b9646d: bundle: avoid repo.lookup() for converting revnum to nodeid
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/commands.py (4 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz |
if cgversion not in changegroup.supportedoutgoingversions(repo): | if cgversion not in changegroup.supportedoutgoingversions(repo): | ||||
raise error.Abort(_("repository does not support bundle version %s") % | raise error.Abort(_("repository does not support bundle version %s") % | ||||
cgversion) | cgversion) | ||||
if base: | if base: | ||||
if dest: | if dest: | ||||
raise error.Abort(_("--base is incompatible with specifying " | raise error.Abort(_("--base is incompatible with specifying " | ||||
"a destination")) | "a destination")) | ||||
common = [repo.lookup(rev) for rev in base] | common = [repo[rev].node() for rev in base] | ||||
heads = [repo.lookup(r) for r in revs] if revs else None | heads = [repo[r].node() for r in revs] if revs else None | ||||
outgoing = discovery.outgoing(repo, common, heads) | outgoing = discovery.outgoing(repo, common, heads) | ||||
else: | else: | ||||
dest = ui.expandpath(dest or 'default-push', dest or 'default') | dest = ui.expandpath(dest or 'default-push', dest or 'default') | ||||
dest, branches = hg.parseurl(dest, opts.get('branch')) | dest, branches = hg.parseurl(dest, opts.get('branch')) | ||||
other = hg.peer(repo, opts, dest) | other = hg.peer(repo, opts, dest) | ||||
revs, checkout = hg.addbranchrevs(repo, repo, branches, revs) | revs, checkout = hg.addbranchrevs(repo, repo, branches, revs) | ||||
heads = revs and map(repo.lookup, revs) or revs | heads = revs and map(repo.lookup, revs) or revs | ||||
outgoing = discovery.findcommonoutgoing(repo, other, | outgoing = discovery.findcommonoutgoing(repo, other, |