This topic describes how to integrate TrackStudio with Subversion.
TrackStudio can be integrated with Subversion version control system through our SOAP API. Subversion check-in messages which are automatically appended to tasks. They can also be bounced by e-mail to the development team. This ensures all changes are logged.
To implement SVN integration:
1. Install TrackStudio DevPack
2. Enable TrackStudio SOAP API in trackstudio.properties
3. Modify the post-commit hook. A hook is a program triggered by some repository event, such as the creation of a new revision. Note that post-commit must be executable by the user(s) who will invoke it (typically the user httpd runs as), and that user must have filesystem-level permission to access the repository.
#!/bin/sh REPOS="$1" REV="$2" SVNLOOK=/usr/local/subversion/bin/svnlook $SVNLOOK log "$REPOS" | sh /devpack/link \ --url http://localhost:8888/TrackStudio --login svnLogin --password svnPassword
@echo off svnlook log %1 | c:/devpack/link \ --url http://localhost:8888/TrackStudio --login svnLogin --password svnPassword
To import SVN message into TrackStudio commit your files. Message will be added to the tasks specified in the message body.
$ svn commit -m "This message should be added to the task #1 and #2."