Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 16736:025b3b763ba9 stable
bundle: make bundles more portable (isue3441)
This is achieved by acting as if the user had given -r<rev> for each head rev
of outgoing changesets on the command line, as well as appropriate
--base <rev>.
The discovery information is computed as normal, and then adjusted as above.
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Sat, 12 May 2012 19:38:20 +0200 |
parents | 265daefc00b2 |
children | 9acb5cd19162 9c86ef980d9e |
comparison
equal
deleted
inserted
replaced
16735:47b8ec0eb7fb | 16736:025b3b763ba9 |
---|---|
1009 other = hg.peer(repo, opts, dest) | 1009 other = hg.peer(repo, opts, dest) |
1010 revs, checkout = hg.addbranchrevs(repo, other, branches, revs) | 1010 revs, checkout = hg.addbranchrevs(repo, other, branches, revs) |
1011 heads = revs and map(repo.lookup, revs) or revs | 1011 heads = revs and map(repo.lookup, revs) or revs |
1012 outgoing = discovery.findcommonoutgoing(repo, other, | 1012 outgoing = discovery.findcommonoutgoing(repo, other, |
1013 onlyheads=heads, | 1013 onlyheads=heads, |
1014 force=opts.get('force')) | 1014 force=opts.get('force'), |
1015 portable=True) | |
1015 cg = repo.getlocalbundle('bundle', outgoing) | 1016 cg = repo.getlocalbundle('bundle', outgoing) |
1016 if not cg: | 1017 if not cg: |
1017 scmutil.nochangesfound(ui, outgoing and outgoing.excluded) | 1018 scmutil.nochangesfound(ui, outgoing and outgoing.excluded) |
1018 return 1 | 1019 return 1 |
1019 | 1020 |