Show More
@@ -332,6 +332,17 b' def has_hg_range(v):' | |||
|
332 | 332 | return gethgversion() >= (int(major), int(minor)) |
|
333 | 333 | |
|
334 | 334 | |
|
335 | @check("rust", "Using the Rust extensions") | |
|
336 | def has_rust(): | |
|
337 | """Check is the mercurial currently running is using some rust code""" | |
|
338 | cmd = b'hg debuginstall --quiet 2>&1' | |
|
339 | match = br'checking module policy \(([^)]+)\)' | |
|
340 | policy = matchoutput(cmd, match) | |
|
341 | if not policy: | |
|
342 | return False | |
|
343 | return b'rust' in policy.group(1) | |
|
344 | ||
|
345 | ||
|
335 | 346 | @check("hg08", "Mercurial >= 0.8") |
|
336 | 347 | def has_hg08(): |
|
337 | 348 | if checks["hg09"][0](): |
General Comments 0
You need to be logged in to leave comments.
Login now