Questions regarding hooks
Didly Bom
didlybom at gmail.com
Thu Jun 17 05:43:57 CDT 2010
Hi,
I have two questions regarding hooks:
I know that you can register a hook from a plugin by using
ui.setconfig("hooks", HOOK_NAME, HOOK_FUNCTION)
- Does it matter which ui object is used to register the hook? That is, does
it matter if I setup the hook using the global ui object using the repo.ui
object?
- Is it ok to setup the same hook multiple times? Will the hook simply be
set to the last hook function that was configured or will the hook run
multiple times? In particular:
- is it ok if I setup the same hook from the repo.ui object and then
also from the global ui object?
- is it ok to setup the same hook programatically using one of the ui
objects and also using the [hooks] section on the mercurial.ini file?
Thanks,
Angel
P.S.- I am not sure whether I should have sent this to the mercurial list
rather than the mercurial-devel list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100617/3be4c20d/attachment.htm>
More information about the Mercurial-devel
mailing list