Mercurial > hg
comparison tests/hghave.py @ 29866:a5ce381a8da0
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.
author | timeless <timeless@mozdev.org> |
---|---|
date | Thu, 25 Aug 2016 22:51:39 +0000 |
parents | 00ca4f966ca6 |
children | b05a3a04f046 |
comparison
equal
deleted
inserted
replaced
29865:80c11c1a64bf | 29866:a5ce381a8da0 |
---|---|
108 | 108 |
109 @check("bzr", "Canonical's Bazaar client") | 109 @check("bzr", "Canonical's Bazaar client") |
110 def has_bzr(): | 110 def has_bzr(): |
111 try: | 111 try: |
112 import bzrlib | 112 import bzrlib |
113 import bzrlib.bzrdir | |
114 import bzrlib.errors | |
115 import bzrlib.revision | |
116 import bzrlib.revisionspec.RevisionSpec | |
113 return bzrlib.__doc__ is not None | 117 return bzrlib.__doc__ is not None |
114 except ImportError: | 118 except ImportError: |
115 return False | 119 return False |
116 | 120 |
117 @checkvers("bzr", "Canonical's Bazaar client >= %s", (1.14,)) | 121 @checkvers("bzr", "Canonical's Bazaar client >= %s", (1.14,)) |