##// END OF EJS Templates
extensions: load help from hgext.__index__ as a fallback this time...
Matt Harbison -
r50672:f4a363b2 stable
parent child Browse files
Show More
@@ -841,6 +841,22 b' def disabled_help(name):'
841 paths = _disabledpaths()
841 paths = _disabledpaths()
842 if name in paths:
842 if name in paths:
843 return _disabledhelp(paths[name])
843 return _disabledhelp(paths[name])
844 else:
845 try:
846 import hgext
847 from hgext import __index__ # pytype: disable=import-error
848
849 # The extensions are filesystem based, so either an error occurred
850 # or all are enabled.
851 if util.safehasattr(hgext, '__file__'):
852 return
853
854 if name in _order: # enabled
855 return
856 else:
857 return gettext(__index__.docs.get(name))
858 except (ImportError, AttributeError):
859 pass
844
860
845
861
846 def _walkcommand(node):
862 def _walkcommand(node):
General Comments 0
You need to be logged in to leave comments. Login now