##// END OF EJS Templates
hghave: use checkvers for bzr114
timeless -
r28760:cef86c3c default
parent child Browse files
Show More
@@ -114,12 +114,13 def has_bzr():
114 except ImportError:
114 except ImportError:
115 return False
115 return False
116
116
117 @check("bzr114", "Canonical's Bazaar client >= 1.14")
117 @checkvers("bzr", "Canonical's Bazaar client >= %s", (1.14,))
118 def has_bzr114():
118 def has_bzr_range(v):
119 major, minor = v.split('.')[0:2]
119 try:
120 try:
120 import bzrlib
121 import bzrlib
121 return (bzrlib.__doc__ is not None
122 return (bzrlib.__doc__ is not None
122 and bzrlib.version_info[:2] >= (1, 14))
123 and bzrlib.version_info[:2] >= (int(major), int(minor)))
123 except ImportError:
124 except ImportError:
124 return False
125 return False
125
126
General Comments 0
You need to be logged in to leave comments. Login now