From 22d9794c1167cd536c9624c5ee1bbb71bf677e09 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Thu, 29 May 2014 13:04:11 +0800 Subject: [PATCH] test: add compatibility with Debian hg-git package Debian has named the hggit python module as hgext.git. Signed-off-by: Paul Wise Signed-off-by: Felipe Contreras --- test/hg-git.t | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/hg-git.t b/test/hg-git.t index eb40481..ddc73b0 100755 --- a/test/hg-git.t +++ b/test/hg-git.t @@ -23,8 +23,13 @@ then test_done fi -if ! python2 -c 'import hggit' > /dev/null 2>&1 +if python2 -c 'import hggit' > /dev/null 2>&1 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' test_done fi @@ -102,7 +107,7 @@ setup () { tag = -d "0 0" [extensions] hgext.bookmarks = - hggit = + $hggit = graphlog = EOF git config --global receive.denycurrentbranch warn