An SVN hook to check commited files for a tag, and update a Trac ticket when it appears.
- An SVN repository
- A Trac installation with XMLRPC, and a user with TICKET_MODIFY and XMLRPC permissions on it
- Groovy
Call this script from the repository's post-commit hook.
Settings for this script must be installed in the repository's conf directory. It must be a valid Groovy config file (a Java Properties file will do)
- trac.url : Root URL for the trac installation
- trac.username : Username to authenticate against trac
- trac.password : Password for the specified user
- core.tag : Tag to look for. See TAG for details
- core.svnlook : Path to the svnlook utility. Defaults to none (i.e. will be searched for in $PATH)
The default tag is NOTIFY_CHANGE ticket=(ticket id). If customized, the parameter core.tag must contain a regular expression with a single capture group for the ticket's id.
This software is distributed under the GPLv2.