summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-25 02:29:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-28 14:59:57 (GMT)
commite14432f798d6575b5c8269982758c0916a5f13c5 (patch)
treef370f0593b7bbc0cf84646f22bdba90a10c19c47 /contrib/remote-helpers
parente6e803be79123dff163900c5a55e556cf6d6c9c0 (diff)
downloadgit-e14432f798d6575b5c8269982758c0916a5f13c5.zip
git-e14432f798d6575b5c8269982758c0916a5f13c5.tar.gz
git-e14432f798d6575b5c8269982758c0916a5f13c5.tar.bz2
remote-hg: add test to push new bookmark
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/remote-helpers')
-rwxr-xr-xcontrib/remote-helpers/test-hg.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh
index c36b729..8d70f4a 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