hgext3rd/__init__.py
author Pulkit Goyal <7895pulkit@gmail.com>
Sun, 06 Nov 2016 06:54:31 +0530
changeset 30306 5581b294f3c6
parent 28541 4b81487a01d4
child 43076 2372284d9457
permissions -rw-r--r--
help: show help for disabled extensions (issue5228) This patch does not exactly solve issue5228 but it results in a better condition on this issue. For disabled extensions, we used to parse the module and get the first occurrences of docstring and then return the first line of that as an introductory heading of extension. This is what we get today. This patch returns the whole docstring of the module as a help for extension, which is more informative. There are some modules which don't have much docstring at top level except the heading so those are unaffected by this change. To follow the existing trend of showing commands either we have to load the extension or have a very ugly parsing method which don't even assure correctness.

# name space package to host third party extensions
from __future__ import absolute_import
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)