tests/hghave
changeset 7061 8b874f8cd29f
parent 7053 209ef5f3534c
child 7315 408cf9eb9e5d
--- a/tests/hghave	Thu Oct 02 15:48:57 2008 +0200
+++ b/tests/hghave	Thu Oct 02 16:22:02 2008 +0200
@@ -25,7 +25,11 @@
     return matchoutput('baz --version 2>&1', r'baz Bazaar version')
 
 def has_bzr():
-    return matchoutput('bzr --version 2>&1', r'Bazaar \(bzr\)')
+    try:
+        import bzrlib
+        return True
+    except ImportError:
+        return False
 
 def has_cvs():
     re = r'Concurrent Versions System.*?server'