Mercurial > public > mercurial-scm > hg
diff mercurial/debugcommands.py @ 44463:295417387769
debuginstall: print if Rust extensions are installed
This should make it easier to use the Rust extensions.
Another patch on will be exposing a version and more useful information, but
it can only be done on top of this very patch, since it is targeting the stable
branch and the API has already changed on the default branch.
Differential Revision: https://phab.mercurial-scm.org/D8248
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Fri, 06 Mar 2020 12:44:51 +0100 |
parents | 9d2b2df2c2ba |
children | febe88a6f7f7 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Fri Mar 06 13:54:35 2020 -0500 +++ b/mercurial/debugcommands.py Fri Mar 06 12:44:51 2020 +0100 @@ -1508,6 +1508,13 @@ pythonlib or _(b"unknown"), ) + try: + from . import rustext + + rustext.__doc__ # trigger lazy import + except ImportError: + rustext = None + security = set(sslutil.supportedprotocols) if sslutil.hassni: security.add(b'sni') @@ -1535,6 +1542,13 @@ ) ) + fm.plain( + _( + b"checking Rust extensions (%s)\n" + % (b'missing' if rustext is None else b'installed') + ), + ) + # TODO print CA cert info # hg version