[PATCH 0 of 2] help/dispatch: provide help for disabled extensions

Brodie Rao dackze at gmail.com
Sun Jan 3 16:17:14 CST 2010


Let's try this again, this time without the spam problem.

Here's a revised patch I've been sitting on for a while.

I've moved out the refactoring to its own patch, and commands.help_()
does all of the hard work (as opposed to being scattered around in
mercurial.dispatch and mercurial.help). I think this is more consistent
with how commands.help_() is called elsewhere in mercurial.dispatch.

I've added an extra optional kwarg to commands.help_() to prevent issues
with dispatch bringing up extension help for unknown commands with the
same names. help.listexts() also has a new optional indent kwarg. I find
the output looks nicer indented.

I've CCed Henri Wiechers because I think this patch could have an effect
on his hg help -e/--extension patch.

Also, another thing to keep in mind is that this doesn't do anything for
extensions that add new options to commands. It'd be nice to have useful
error messages in that case as well, but it'd require changes to the
extensions themselves.


More information about the Mercurial-devel mailing list