Submitter | phabricator |
---|---|
Date | March 6, 2020, 11:36 p.m. |
Message ID | <7e39ff35429384cba7ea047a614d2896@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/45580/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -332,6 +332,17 @@ return gethgversion() >= (int(major), int(minor)) +@check("rust", "Using the Rust extensions") +def has_rust(): + """Check is the mercurial currently running is using some rust code""" + cmd = b'hg debuginstall --quiet 2>&1' + match = br'checking module policy \(([^)]+)\)' + policy = matchoutput(cmd, match) + if not policy: + return False + return b'rust' in policy.group(1) + + @check("hg08", "Mercurial >= 0.8") def has_hg08(): if checks["hg09"][0]():