Can't add notify hook

Martin Geisler mg at lazybytes.net
Thu Dec 3 14:31:50 CST 2009


Filip Gruszczyński <gruszczy at gmail.com> writes:

>> 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
>
> This is how it works now: i have mypage repository and mypage-hook
> repository on the same server. mypage-hook is cloned from mypage. When
> I make some changes in mypage-hook, commit and push to mypage, no mail
> is sent. When I or any other dev makes a change on his local computer,
> commits and pushes to server, mails are sent properly.
>
> And idea what might make the difference? I am only curious now,
> because I receive mails now, so it works just, as it should. But it
> would be nice, why it doesn't do so in the presented scenario.

Here's one possible difference: I have a setup where the repository is
owned by one user, and I push over SSH to the repository: 'hg push
ssh://foo@server...'

I actually share the filesystem with the server, so I could give myself
write-access and push directly 'hg push /home/foo/...'. But if I did
that, the configuration in foo's repository would be ignored by default.

See: http://www.selenic.com/mercurial/hgrc.5.html#trusted

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial/attachments/20091203/070628e9/attachment.pgp>


More information about the Mercurial mailing list