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>maint
parent
e6e803be79
commit
e14432f798
|
|
@ -117,6 +117,21 @@ test_expect_success 'update bookmark' '
|
||||||
check_bookmark hgrepo devel devel
|
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
|
# cleanup previous stuff
|
||||||
rm -rf hgrepo
|
rm -rf hgrepo
|
||||||
|
|
||||||
|
|
@ -288,4 +303,19 @@ test_expect_success 'remote update bookmark' '
|
||||||
check_bookmark hgrepo devel devel
|
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
|
test_done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue