Thanks. I am just trying to setup Trac's post-commit script.
Here is how I call it /srv/svn/repositories/sample/hooks/post-commit:
REPOS="$1"
REV="$2"
LOG=`/usr/local/bin/svnlook log -r $REV $REPOS`
AUTHOR=`/usr/local/bin/svnlook author -r $REV $REPOS`
TRAC_ENV='/srv/svn/tracenv/sample/'
TRAC_URL='http://localhost://tracproject/sample/'
/usr/bin/python /srv/svn/repositories/sample/hooks/trac-post-commit-hook \
-p "$TRAC_ENV" \
-r "$REV" \
-u "$AUTHOR" \
-m "$LOG" \
-s "$TRAC_URL"
On 1/24/07, Miller, Eric <Eric.Miller@amd.com> wrote:
> Hook error output is only text that went to STDERR.
> It appears that your hook does not print anything useful to STDERR.
> You may have to add some error messages if you need more useful output.
>
> Eric
>
> > -----Original Message-----
> > From: ying lcs [mailto:yinglcs@gmail.com]
> > Sent: Wednesday, January 24, 2007 10:15 AM
> > To: users@subversion.tigris.org
> > Subject: How can I check 'post-commit' hook error
> >
> > All,
> >
> > I have setup trac-post-commit in subversion, can you please tell me
> > where can I find what is the error?
> >
> > Thank you.
> >
> > When I do a 'svn commit', I get the following error:
> > $ svn commit -m 'Fixes #3"
> > // a lot of files here
> > Transmitting file data .................
> > Committed revision 8.
> >
> > Warning: 'post-commit' hook failed with error output:
> >
> > $
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 24 18:39:15 2007