testing: add capabilities tests for Mercurial 3.8+ and 3.9+; r?smacleod draft
authorGregory Szorc <gps@mozilla.com>
Wed, 14 Sep 2016 09:16:08 -0700
changeset 9625 752c6cacdfd9013efb76366700335f32dc2818ad
parent 9585 0ae53f5aab3aae33b6b02b1d63ad92720469df55
child 9626 2f6865eec56d2d81de1a633b39134b4fc6c27ce2
push id1251
push userbmo:gps@mozilla.com
push dateThu, 22 Sep 2016 17:26:54 +0000
reviewerssmacleod
testing: add capabilities tests for Mercurial 3.8+ and 3.9+; r?smacleod Pretty self-explanatory. MozReview-Commit-ID: Eq1EealG5Zt
testing/hghave.py
--- a/testing/hghave.py
+++ b/testing/hghave.py
@@ -98,16 +98,26 @@ def has_hg36_plus():
     v = tuple(hgversion()[0:2])
     return v >= (3, 6)
 
 @check('hg37+', 'Running with Mercurial 3.7+')
 def has_37_plus():
     v = tuple(hgversion()[0:2])
     return v >= (3, 7)
 
+@check('hg38+', 'Running with Mercurial 3.8+')
+def has_38_plus():
+    v = tuple(hgversion()[0:2])
+    return v >= (3, 8)
+
+@check('hg39+', 'Running with Mercurial 3.9+')
+def has_39_plus():
+    v = tuple(hgversion()[0:2])
+    return v >= (3, 9)
+
 # Now we reimplement the command line syntax of the CLI hghave script.
 failures = 0
 
 def error(msg):
     global failures
     sys.stderr.write('%s\n' % msg)
     failures += 1