Mercurial > hg
diff mercurial/debugcommands.py @ 44532:c989737158aa
debuginstall: add entry about re2 Rust bindings when applicable
Differential Revision: https://phab.mercurial-scm.org/D8226
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 05 Mar 2020 10:24:45 +0100 |
parents | 6c906eaedd0d |
children | 99ea74cbed74 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Thu Mar 05 10:24:10 2020 +0100 +++ b/mercurial/debugcommands.py Thu Mar 05 10:24:45 2020 +0100 @@ -1650,6 +1650,13 @@ fm.plain(_(b'checking "re2" regexp engine (%s)\n') % re2) fm.data(re2=bool(util._re2)) + rust_debug_mod = policy.importrust("debug") + if rust_debug_mod is not None: + re2_rust = b'installed' if rust_debug_mod.re2_installed else b'missing' + + msg = b'checking "re2" regexp engine Rust bindings (%s)\n' + fm.plain(_(msg % re2_rust)) + # templates p = templater.templatepaths() fm.write(b'templatedirs', b'checking templates (%s)...\n', b' '.join(p))