Questions regarding hooks
Martin Geisler
mg at lazybytes.net
Tue Jun 22 07:04:43 CDT 2010
Didly <didlybom at gmail.com> writes:
> 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?
Oh, of course... I've fixed it now :-)
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/
More information about the Mercurial-devel
mailing list