Can't add notify hook

Kyle Altendorf kyle.altendorf at gmail.com
Thu Dec 3 10:42:20 CST 2009


2009/12/3 Igor Lautar <igor.lautar at gmail.com>:
> 2009/12/3 Filip Gruszczyński <gruszczy at gmail.com>:
>> 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?
>
> Like when pushed from a clone of repository which has notifications set-up?
> Or commiting to repository which has notifications set-up?

My understanding when I set up notify was that it doesn't handle
direct commits, only push and pull and the like.  Filip, when you say
'when it comes from the same server' do you mean:

a) direct commit to the repository configured with notify
b) shell is running on same server
c) repository is on same server

My understanding is that a) is the only relevant consideration, though
perhaps there are different hooks for direct (file access) pushes vs.
over the wire?

A complete copy of the current hgrc from the repository being pushed
to (and referenced configs, passwords blocked of course :] ) along
with logs of each command and their output could help resolve this
more quickly and with more confidence.

-kyle

>
> I have tried first one some time back (when setting it up) and it
> worked (at least, I remember using test = True and getting proper
> notification output on push).
>
> Have you tried using test = True and examining output on push (with --debug)?
>


More information about the Mercurial mailing list