I have a Trac environment with SVN repository linked.
I am trying to setup SVN post commit hook to automatically update Trac tickets and add references etc.
In /var/lib/svn/repository/hooks/post-commit I have
REPOS="$1" REV="$2"
/usr/bin/python /var/lib/trac/custom-trac-post-commit.py -p "/var/lib/trac/Project" -r "$REV"
Could you guys please assist how to debug it? I get no errors or anything.
If I use instead:
REPOS="$1" REV="$2"
/usr/bin/trac-admin /var/lib/trac/Project changeset added "$1" "$2"
It is sort of working, commits show in Trac timeline. But I need to be able to update tickets as well.
You can review custom-trac-post-commit.py here http://paste.ubuntu.com/9675899/
Thanks!