test: add compatibility with Debian hg-git package

Debian has named the hggit python module as hgext.git.

Signed-off-by: Paul Wise <pabs3@bonedaddy.net>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Paul Wise
2014-05-29 13:04:11 +08:00
committed by Felipe Contreras
parent f53a8653ab
commit 22d9794c11

View File

@@ -23,8 +23,13 @@ then
test_done test_done
fi fi
if ! python2 -c 'import hggit' > /dev/null 2>&1 if python2 -c 'import hggit' > /dev/null 2>&1
then then
hggit=hggit
elif python2 -c 'import hgext.git' > /dev/null 2>&1
then
hggit=hgext.git
else
skip_all='skipping remote-hg tests; hg-git not available' skip_all='skipping remote-hg tests; hg-git not available'
test_done test_done
fi fi
@@ -102,7 +107,7 @@ setup () {
tag = -d "0 0" tag = -d "0 0"
[extensions] [extensions]
hgext.bookmarks = hgext.bookmarks =
hggit = $hggit =
graphlog = graphlog =
EOF EOF
git config --global receive.denycurrentbranch warn git config --global receive.denycurrentbranch warn