comparison tests/test-bundle.t @ 18701:61c8327ced50 stable

bundle: treat branches created newly on the local correctly (issue3828) Before this patch, "hg bundle --branch foo other" fails to create bundle file, if specified "foo" branch is created newly on the local repository. "hg bundle" uses "hg.addbranchrevs(repo, other, ...)" to look branch names up, even though other outgoing-like implementation uses "hg.addbranchrevs(repo, repo, ...)". In the former invocation, "other" repository recognizes such branches as unknown, so execution is aborted. This patch uses "hg.addbranchrevs(repo, repo, ..)" in "hg bundle" to bundle revisions on such branches correctly.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 18 Feb 2013 00:04:28 +0900
parents 03e552aaae67
children 7f865a94691e
comparison
equal deleted inserted replaced
18699:7d66a44e87ed 18701:61c8327ced50
520 $ hg incoming ../test%23bundle.hg 520 $ hg incoming ../test%23bundle.hg
521 abort: repository ../test%23bundle.hg not found! 521 abort: repository ../test%23bundle.hg not found!
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
528 543
529 partial history bundle, fails w/ unkown parent 544 partial history bundle, fails w/ unkown parent