Patchwork D8226: debuginstall: add entry about re2 Rust bindings when applicable

login
register
mail settings
Submitter phabricator
Date March 6, 2020, 4:31 p.m.
Message ID <e2528a4461df28025fa0608d0691ef8d@localhost.localdomain>
Download mbox | patch
Permalink /patch/45557/
State Not Applicable
Headers show

Comments

phabricator - March 6, 2020, 4:31 p.m.
Alphare updated this revision to Diff 20560.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8226?vs=20504&id=20560

BRANCH
  default

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8226/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8226

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -1636,6 +1636,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))