mercurial/debugcommands.py
changeset 44463 295417387769
parent 44452 9d2b2df2c2ba
child 44512 febe88a6f7f7
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()