From: Felipe Contreras Date: Sat, 25 May 2013 02:29:40 +0000 (-0500) Subject: remote-hg: add test to push new bookmark X-Git-Tag: v1.8.4-rc0~191^2~24 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e14432f798d6575b5c8269982758c0916a5f13c5?ds=inline;hp=--cc remote-hg: add test to push new bookmark Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- e14432f798d6575b5c8269982758c0916a5f13c5 diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh index c36b729770..8d70f4aefc 100755 --- a/contrib/remote-helpers/test-hg.sh +++ b/contrib/remote-helpers/test-hg.sh @@ -117,6 +117,21 @@ test_expect_success 'update bookmark' ' check_bookmark hgrepo devel devel ' +test_expect_success 'new bookmark' ' + test_when_finished "rm -rf gitrepo*" && + + ( + git clone "hg::hgrepo" gitrepo && + cd gitrepo && + git checkout --quiet -b feature-b && + echo feature-b > content && + git commit -a -m feature-b && + git push --quiet origin feature-b + ) && + + check_bookmark hgrepo feature-b feature-b +' + # cleanup previous stuff rm -rf hgrepo @@ -288,4 +303,19 @@ test_expect_success 'remote update bookmark' ' check_bookmark hgrepo devel devel ' +test_expect_success 'remote new bookmark' ' + test_when_finished "rm -rf gitrepo*" && + + ( + git clone "hg::hgrepo" gitrepo && + cd gitrepo && + git checkout --quiet -b feature-b && + echo feature-b > content && + git commit -a -m feature-b && + git push --quiet origin feature-b + ) && + + check_bookmark hgrepo feature-b feature-b +' + test_done