[PATCH 1 of 2] color: wrap qdiff/qseries after all extensions are loaded

Dirkjan Ochtman dirkjan at ochtman.nl
Thu May 7 11:20:46 CDT 2009


On Thu, May 7, 2009 at 6:09 PM, Martin Geisler <mg at lazybytes.net> wrote:
> At that point color.extsetup will modify mq.cmdtable, but this does not
> take effect because mq.cmdtable was already merged with commands.table.

So color can just manipulate the mq commands in commands.table?

Topo-sorting sounds awkward. Maybe a small registry where extensions
can register functions to be called when the target extension is
loaded? If the extension was already loaded, the function fires
directly; if not, it's fired as soon as the extension is loaded.

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list