Can't add notify hook
Filip Gruszczyński
gruszczy at gmail.com
Thu Dec 3 11:42:39 UTC 2009
It seems, that notify sends mail, when the push was external. When it
comes from the same server, no message is sent. But when other
developer pushed some changes from outside, I received mails. So it
works now.
Any idea, why it doesn't send mail, when changes are pushed from the
same server?
W dniu 1 grudnia 2009 17:09 użytkownik Kyle Altendorf
<kyle.altendorf at gmail.com> napisał:
> 2009/12/1 Filip Gruszczyński <gruszczy at gmail.com>:
>>> Are you seeing messages like last 2?
>>
>> I am only seeing something like this:
>> # hg push -v
>>
>> pushing to /home/hg/jakakasa
>> searching for changes
>> 1 changesets found
>> adding changesets
>> adding manifests
>> adding file changes
>> added 1 changesets with 1 changes to 1 files
>> calling hook incoming.notify: hgext.notify.hook
>>
>> so there are aren't any messages, like you described.
>>
>> Maybe I have to put notify to extensions?
>
> Try adding:
>
> [notify]
> # multiple sources can be specified as a whitespace separated list
> sources = serve push pull bundle
>
> The extension needs to know in what situations you actually want
> messages sent out.
>
> http://mercurial.selenic.com/wiki/NotifyExtension
>
>> 3) The most common use case is for email to be sent if a push is made to
>> the repository. This is corresponds to the sources keyword "serve", which
>> is not obvious. What each of these keywords means really needs to be
>> documented. Presumably an email will be sent if an action corresponding
>> to any of the listed keywords is performed.
>
> Good luck,
> -kyle
>
>>
>> --
>> Filip Gruszczyński
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at selenic.com
>> http://selenic.com/mailman/listinfo/mercurial
>>
>
--
Filip Gruszczyński
More information about the Mercurial
mailing list