##// END OF EJS Templates
hghave: replace has_svn13/has_svn15 with checkvers...
timeless -
r28759:2348ca49 default
parent child Browse files
Show More
@@ -248,13 +248,10 def getsvnversion():
248 return (0, 0)
248 return (0, 0)
249 return (int(m.group(1)), int(m.group(2)))
249 return (int(m.group(1)), int(m.group(2)))
250
250
251 @check("svn15", "subversion client and admin tools >= 1.5")
251 @checkvers("svn", "subversion client and admin tools >= %s", (1.3, 1.5))
252 def has_svn15():
252 def has_svn_range(v):
253 return getsvnversion() >= (1, 5)
253 major, minor = v.split('.')[0:2]
254
254 return getsvnversion() >= (int(major), int(minor))
255 @check("svn13", "subversion client and admin tools >= 1.3")
256 def has_svn13():
257 return getsvnversion() >= (1, 3)
258
255
259 @check("svn", "subversion client and admin tools")
256 @check("svn", "subversion client and admin tools")
260 def has_svn():
257 def has_svn():
General Comments 0
You need to be logged in to leave comments. Login now