From patchwork Thu Mar 5 09:27:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D8226: debuginstall: add entry about re2 Rust bindings when applicable From: phabricator X-Patchwork-Id: 45500 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Thu, 5 Mar 2020 09:27:28 +0000 Alphare created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D8226 AFFECTED FILES mercurial/debugcommands.py CHANGE DETAILS To: Alphare, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -1635,6 +1635,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))