[PATCH 33/47] remote-hg: add test for new bookmark special
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 14, 2013, 04:36 UTC
- Message-ID
- <1368506230-19614-34-git-send-email-felipe.contreras@gmail.com>
- In-Reply-To
- <1368506230-19614-1-git-send-email-felipe.contreras@gmail.com>
>From the point of view of Mercurial, this creates a new branch head, and
requires a forced push.
Ideally, whoever, we would want it to work just like in git; new branches can be pushed without problems.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- contrib/remote-helpers/test-hg.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh index f4e3807..c3fa04d 100755 --- a/contrib/remote-helpers/test-hg.sh +++ b/contrib/remote-helpers/test-hg.sh @@ -310,4 +310,19 @@ test_expect_failure 'remote update bookmark diverge' ' check_bookmark hgrepo diverge "bump bookmark" ' +test_expect_failure 'remote new bookmark multiple branch head' ' + test_when_finished "rm -rf gitrepo*" && + + ( + git clone "hg::hgrepo" gitrepo && + cd gitrepo && + git checkout --quiet -b feature-c HEAD^ && + echo feature-c > content && + git commit -a -m feature-c && + git push --quiet origin feature-c + ) && + + check_bookmark hgrepo feature-c feature-c +' + test_done
-- 1.8.3.rc1.579.g184e698