testing: add capabilities tests for Mercurial 3.8+ and 3.9+; r?smacleod
Pretty self-explanatory.
MozReview-Commit-ID: Eq1EealG5Zt
--- 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