[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN Post Commit Email Notifications

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-08-30 17:54:38 CEST

On 30.08.2005, at 04:00, S I wrote:

> Thanks. I did do "sudo perl path/commit-email.pl ..." And added
> 'exit 2' to the end of the post-commit file. So looks like the
> email.pl file gets executed w/o any errors, otherwise the exit2
> option would've sent me the STDERR, no? Could be easily my
> permissions. I have to walk through it with the Admin guys. thanks
> again.

No, you're thinking of a pre-commit hook, whose stderr output is sent
to the Subversion client when exit status > 0. A post-commit hook's
stderr, on the other hand, is never seen by anybody, and its exit
status is not used for any purpose either. This is a bug and is being
worked on:

http://subversion.tigris.org/issues/show_bug.cgi?id=443

As previously suggested, try appending something to a temporary log
file within the post-commit hook to see if that part of the script is
being reached. For example:

/bin/echo `date` "about to send email" >> /tmp/hook.log

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 30 17:57:13 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.