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

Re: Questions about hooks

From: <Mathias.Weinert_at_gfa-net.de>
Date: 2006-01-24 17:40:53 CET

Jeff Lanzarotta <delux256-subversion@yahoo.com> wrote:

> Hello,
>
> I am trying to get the post-commit and mailer.py hook combination to
work. With no luck by the way...
>
> Is there some place error messages are written to so that I can see what
exactly is going on? I am committing stuff to the repository and I am not
receiving any emails... I am on SuSE Linux 9.3...
>

Hi Jeff,

I would suggest to do it step by step:
1. run mailer.py from the command line with output to stdout (set a '#'
before mail_command in mailer.conf) (with any revision number you would
like to test)
If this shows the expected results:
2. run it from the command line with output set to mail (set the
mail_command option in mailer.conf)
If this also perfectly runs:
3. try to run it by the hook (and remember that there is no environment so
you have to set paths etc.)

To directly answer your question: call mailer.py in the hook with
redirection of stdout and stderr to files (with explicit paths) so you can
see the error output there.

Hope this helps.

Mathias

BTW I posted some minor corrections to mailer.py which are already
committed to trunk but not included in Subversion 1.3.0. But this
shouldn't prevent you from getting it to work at all.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 24 17:45:51 2006

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.