API for an extension to register a hook?
Matt Mackall
mpm at selenic.com
Thu Jan 7 18:41:31 UTC 2010
On Thu, 2010-01-07 at 09:32 -0700, Tory Patnoe wrote:
> Is it possible for an extension to register a hook. AFAICT hooks and
> extensions are separate. There is wrapcommand and wrapfunction but I
> didn't find a registerhook. In my testing all I ended up doing was
> calling the hook in setupui etc.
You can add hooks to the config data stored in the ui objects.
--
http://selenic.com : development and support for Mercurial and Linux
More information about the Mercurial
mailing list