mercurial/help.py
changeset 44657 843418dc0b1b
parent 44306 a0ec05d93c8e
child 45059 79f6f9fa18c1
equal deleted inserted replaced
44656:15aef805619d 44657:843418dc0b1b
   964         try:
   964         try:
   965             mod = extensions.find(name)
   965             mod = extensions.find(name)
   966             doc = gettext(pycompat.getdoc(mod)) or _(b'no help text available')
   966             doc = gettext(pycompat.getdoc(mod)) or _(b'no help text available')
   967         except KeyError:
   967         except KeyError:
   968             mod = None
   968             mod = None
   969             doc = extensions.disabledext(name)
   969             doc = extensions.disabled_help(name)
   970             if not doc:
   970             if not doc:
   971                 raise error.UnknownCommand(name)
   971                 raise error.UnknownCommand(name)
   972 
   972 
   973         if b'\n' not in doc:
   973         if b'\n' not in doc:
   974             head, tail = doc, b""
   974             head, tail = doc, b""