Show More
@@ -1066,7 +1066,7 b' def bundle(ui, repo, fname, dest=None, *' | |||||
1066 | dest = ui.expandpath(dest or 'default-push', dest or 'default') |
|
1066 | dest = ui.expandpath(dest or 'default-push', dest or 'default') | |
1067 | dest, branches = hg.parseurl(dest, opts.get('branch')) |
|
1067 | dest, branches = hg.parseurl(dest, opts.get('branch')) | |
1068 | other = hg.peer(repo, opts, dest) |
|
1068 | other = hg.peer(repo, opts, dest) | |
1069 |
revs, checkout = hg.addbranchrevs(repo, o |
|
1069 | revs, checkout = hg.addbranchrevs(repo, repo, branches, revs) | |
1070 | heads = revs and map(repo.lookup, revs) or revs |
|
1070 | heads = revs and map(repo.lookup, revs) or revs | |
1071 | outgoing = discovery.findcommonoutgoing(repo, other, |
|
1071 | outgoing = discovery.findcommonoutgoing(repo, other, | |
1072 | onlyheads=heads, |
|
1072 | onlyheads=heads, |
@@ -522,6 +522,21 b' note that percent encoding is not handle' | |||||
522 | [255] |
|
522 | [255] | |
523 | $ cd .. |
|
523 | $ cd .. | |
524 |
|
524 | |||
|
525 | test to bundle revisions on the newly created branch (issue3828): | |||
|
526 | ||||
|
527 | $ hg -q clone -U test test-clone | |||
|
528 | $ cd test | |||
|
529 | ||||
|
530 | $ hg -q branch foo | |||
|
531 | $ hg commit -m "create foo branch" | |||
|
532 | $ hg -q outgoing ../test-clone | |||
|
533 | 9:b4f5acb1ee27 | |||
|
534 | $ hg -q bundle --branch foo foo.hg ../test-clone | |||
|
535 | $ hg -R foo.hg -q log -r "bundle()" | |||
|
536 | 9:b4f5acb1ee27 | |||
|
537 | ||||
|
538 | $ cd .. | |||
|
539 | ||||
525 | test for http://mercurial.selenic.com/bts/issue1144 |
|
540 | test for http://mercurial.selenic.com/bts/issue1144 | |
526 |
|
541 | |||
527 | test that verify bundle does not traceback |
|
542 | test that verify bundle does not traceback |
General Comments 0
You need to be logged in to leave comments.
Login now