changeset 42159:07e479ef7c96 stable 5.0

hghave: deal with "rc" release Without this change, 5.0rc0 is not recognised as 5.0
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 25 Apr 2019 19:17:02 +0200
parents 280f7a095df8
children 27b8a6be7281
files tests/hghave.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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