hghave: make bzr checks stricter
authortimeless <timeless@mozdev.org>
Thu, 25 Aug 2016 22:51:39 +0000
changeset 29866 a5ce381a8da0
parent 29865 80c11c1a64bf
child 29867 b05a3a04f046
hghave: make bzr checks stricter My bzr does not have bzrlib.revisionspec.RevisionSpec, and thus tests were failing because convert refused to believe in bzr, but hghave without this change thought it was available.
tests/hghave.py
--- a/tests/hghave.py	Mon Aug 22 19:50:21 2016 -0700
+++ b/tests/hghave.py	Thu Aug 25 22:51:39 2016 +0000
@@ -110,6 +110,10 @@
 def has_bzr():
     try:
         import bzrlib
+        import bzrlib.bzrdir
+        import bzrlib.errors
+        import bzrlib.revision
+        import bzrlib.revisionspec.RevisionSpec
         return bzrlib.__doc__ is not None
     except ImportError:
         return False