Show More
@@ -808,18 +808,8 b' def disabled():' | |||||
808 | return exts |
|
808 | return exts | |
809 |
|
809 | |||
810 |
|
810 | |||
811 |
def disabled |
|
811 | def disabled_help(name): | |
812 | '''find a specific disabled extension from hgext. returns desc''' |
|
812 | """Obtain the full help text for a disabled extension, or None.""" | |
813 | try: |
|
|||
814 | from hgext import __index__ # pytype: disable=import-error |
|
|||
815 |
|
||||
816 | if name in _order: # enabled |
|
|||
817 | return |
|
|||
818 | else: |
|
|||
819 | return gettext(__index__.docs.get(name)) |
|
|||
820 | except (ImportError, AttributeError): |
|
|||
821 | pass |
|
|||
822 |
|
||||
823 | paths = _disabledpaths() |
|
813 | paths = _disabledpaths() | |
824 | if name in paths: |
|
814 | if name in paths: | |
825 | return _disabledhelp(paths[name]) |
|
815 | return _disabledhelp(paths[name]) |
@@ -966,7 +966,7 b' def help_(' | |||||
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.disabled |
|
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 |
@@ -695,7 +695,7 b' def clone(' | |||||
695 | # data. |
|
695 | # data. | |
696 | createopts[b'lfs'] = True |
|
696 | createopts[b'lfs'] = True | |
697 |
|
697 | |||
698 |
if extensions.disabled |
|
698 | if extensions.disabled_help(b'lfs'): | |
699 | ui.status( |
|
699 | ui.status( | |
700 | _( |
|
700 | _( | |
701 | b'(remote is using large file support (lfs), but it is ' |
|
701 | b'(remote is using large file support (lfs), but it is ' |
General Comments 0
You need to be logged in to leave comments.
Login now