[PATCH] help: show content for explicitly disabled extension (issue5228)

Yuya Nishihara yuya at tcha.org
Wed Sep 7 10:05:20 EDT 2016

On Tue, 6 Sep 2016 22:32:48 +0200, Piotr Listkiewicz wrote:
> > Just looks for the hgext directory.
> > https://selenic.com/repo/hg/file/3.9.1/mercurial/extensions.py#l417
> > The issue says "hg help -e eol" should print the same content as
> > "hg help -e eol --config extensions.eol=" even if eol isn't enabled. I
> > think
> > that will be doable by parsing the extension file.
> > https://bz.mercurial-scm.org/show_bug.cgi?id=5228
> In https://selenic.com/repo/hg/file/3.9.1/mercurial/extensions.py#l380 doc
> variable contains top-level python documentation for the given file and it
> shows only summary line now. Maybe the way to fix would be just to return
> all translated doc with gettext(doc), are there any reason to do additional
> parsing?

Indeed. Maybe we'll need to teach helpext() to read the whole doc string.

More information about the Mercurial-devel mailing list