rdiff extension kills diff

Brendan Cully brendan at kublai.com
Fri Nov 14 01:13:25 CST 2008

On Wednesday, 12 November 2008 at 07:35, Neal Becker wrote:
> If rdiff is enabled, hg help doesn't even show the existence of the 'diff' command. 

That happens to any command that's wrapped in a module, even when
using the new extensions.wrapcommand function. It's due to this part
of the help command (commands.py:1343-1346):

            if (not select and name != 'shortlist' and
                e[0].__module__ != __name__):

because the module of the overridden command is no longer the same as
__name__. Not sure what the best fix is.

More information about the Mercurial-devel mailing list