This will work identically on Python 2 and 3.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
This will work identically on Python 2 and 3.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/commands.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
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.lookup(rev) for rev in base] | ||||
heads = map(repo.lookup, revs) if revs else None | heads = [repo.lookup(r) 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, |