Questions regarding hooks

Martin Geisler mg at lazybytes.net
Tue Jun 22 03:42:44 CDT 2010


Didly <didlybom at gmail.com> writes:

> Martin, I have updated the "Writing Extensions" page of the wiki with
> some information regarding how to configure hooks automatically within
> the extension code:
> http://mercurial.selenic.com/wiki/WritingExtensions

Yay, cool! I've just edited it a bit so that the example shows the
difference between the pre-update and update hooks -- similar hooks, but
they must be configured in different places.

> I have also added a new section "Configuring hooks", in which I explain that
> different hooks must be configured in different "setup functions" (some must
> be configured on the uisetup ()or extsetup() functions, while others must be
> configured on the reposetup() function). I also added an example that
> demonstrates this. However I have not added a table indicating which hooks
> must be setup on which function since I would need to test each of them. If
> I get the time I will do so, in which case I would add this info into the
> "Hooks" page as you suggested.

That is very nice, thanks for the edits! :-)

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/


More information about the Mercurial-devel mailing list