comparison 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
comparison
equal deleted inserted replaced
44462:6aee0647e026 44463:295417387769
1506 b'pythonlib', 1506 b'pythonlib',
1507 _(b"checking Python lib (%s)...\n"), 1507 _(b"checking Python lib (%s)...\n"),
1508 pythonlib or _(b"unknown"), 1508 pythonlib or _(b"unknown"),
1509 ) 1509 )
1510 1510
1511 try:
1512 from . import rustext
1513
1514 rustext.__doc__ # trigger lazy import
1515 except ImportError:
1516 rustext = None
1517
1511 security = set(sslutil.supportedprotocols) 1518 security = set(sslutil.supportedprotocols)
1512 if sslutil.hassni: 1519 if sslutil.hassni:
1513 security.add(b'sni') 1520 security.add(b'sni')
1514 1521
1515 fm.write( 1522 fm.write(
1532 _( 1539 _(
1533 b' SNI not supported by Python install; may have ' 1540 b' SNI not supported by Python install; may have '
1534 b'connectivity issues with some servers\n' 1541 b'connectivity issues with some servers\n'
1535 ) 1542 )
1536 ) 1543 )
1544
1545 fm.plain(
1546 _(
1547 b"checking Rust extensions (%s)\n"
1548 % (b'missing' if rustext is None else b'installed')
1549 ),
1550 )
1537 1551
1538 # TODO print CA cert info 1552 # TODO print CA cert info
1539 1553
1540 # hg version 1554 # hg version
1541 hgver = util.version() 1555 hgver = util.version()