Questions regarding hooks

Didly didlybom at gmail.com
Tue Jun 22 06:23:32 CDT 2010


On Tue, Jun 22, 2010 at 10:42 AM, Martin Geisler <mg at lazybytes.net> wrote:

> 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.
>

Good idea. One little comment though. where you say:

def preupdatehook(ui, repo, **kwargs):
    print("Pre-commit hook triggered")


Shouldn't it say "Pre-update hook triggered" instead?

Angel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100622/3139cf31/attachment.htm>


More information about the Mercurial-devel mailing list