hghave: deal with "rc" release stable 5.0
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 25 Apr 2019 19:17:02 +0200
branchstable
changeset 42215 07e479ef7c96
parent 42209 280f7a095df8
child 42218 27b8a6be7281
hghave: deal with "rc" release Without this change, 5.0rc0 is not recognised as 5.0
tests/hghave.py
--- a/tests/hghave.py	Wed Apr 17 15:06:41 2019 +0300
+++ b/tests/hghave.py	Thu Apr 25 19:17:02 2019 +0200
@@ -142,7 +142,7 @@
 
 @checkvers("bzr", "Canonical's Bazaar client >= %s", (1.14,))
 def has_bzr_range(v):
-    major, minor = v.split('.')[0:2]
+    major, minor = v.split('rc')[0].split('.')[0:2]
     try:
         import bzrlib
         return (bzrlib.__doc__ is not None