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

Re: How can I check 'post-commit' hook error

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-01-24 21:54:53 CET

On Jan 24, 2007, at 11:38, ying lcs wrote:

> 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/'

Well that's obviously not a valid URL. This would be better:

TRAC_URL='http://localhost/tracproject/sample/'

However if that doesn't work, you'd have better luck asking on the
Trac mailing list, since many of us (myself included) have never
tried to set up Trac.

> /usr/bin/python /srv/svn/repositories/sample/hooks/trac-post-commit-
> hook \
> -p "$TRAC_ENV" \
> -r "$REV" \
> -u "$AUTHOR" \
> -m "$LOG" \
> -s "$TRAC_URL"

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 24 21:55:25 2007

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.