testing: hghave support for Mercurial 3.3+
authorGregory Szorc <gps@mozilla.com>
Sun, 18 Jan 2015 13:58:48 -0800
changeset 360134 166b0ef2505e192b6cd6d1e9508be421b1a82eca
parent 360133 8d4397a14eddf29d4845539b1213f575aa838d2d
child 360135 e1c64ba5b940799fd9a9dc4a9904cfb549bdf651
push id16998
push userrwood@mozilla.com
push dateMon, 02 May 2016 19:42:03 +0000
testing: hghave support for Mercurial 3.3+
testing/hghave.py
--- a/testing/hghave.py
+++ b/testing/hghave.py
@@ -56,16 +56,21 @@ def has_hg_31_plus():
     v = tuple(hgversion()[0:2])
     return v >= (3, 1)
 
 @check('hg32+', 'Running with Mercurial 3.2+')
 def has_hg32_plus():
     v = tuple(hgversion()[0:2])
     return v >= (3, 2)
 
+@check('hg33+', 'Running with Mercurial 3.3+')
+def has_hg33_plus():
+    v = tuple(hgversion()[0:2])
+    return v >= (3, 3)
+
 # 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