1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 14:57:52 +01:00

remote-hg: add check_bookmark() test helper

And check in a more proper way.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Felipe Contreras 2013-05-24 21:29:37 -05:00 committed by Junio C Hamano
parent 0067ecc82b
commit b082b4f94f

View file

@ -32,6 +32,12 @@ check_branch () {
test_cmp expected actual
}
check_bookmark () {
echo $3 > expected &&
hg -R $1 log -r "bookmark('$2')" --template '{desc}\n' > actual &&
test_cmp expected actual
}
setup () {
(
echo "[ui]"
@ -108,7 +114,7 @@ test_expect_success 'update bookmark' '
git push --quiet
) &&
hg -R hgrepo bookmarks | egrep "devel[ ]+3:"
check_bookmark hgrepo devel devel
'
# cleanup previous stuff