D8248: debuginstall: print if Rust extensions are installed
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Mon Mar 9 09:54:53 UTC 2020
pulkit added a comment.
and the following too to make `test-check-format.t` happy.
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -1510,6 +1510,7 @@ def debuginstall(ui, **opts):
try:
from . import rustext
+
rustext.__doc__ # trigger lazy import
except ImportError:
rustext = None
@@ -1542,8 +1543,10 @@ def debuginstall(ui, **opts):
)
fm.plain(
- _(b"checking Rust extensions (%s)\n" % (b'missing'
- if rustext is None else b'installed')),
+ _(
+ b"checking Rust extensions (%s)\n"
+ % (b'missing' if rustext is None else b'installed')
+ ),
)
# TODO print CA cert info
REPOSITORY
rHG Mercurial
BRANCH
stable
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8248/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8248
To: Alphare, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list