Mantis bugtracker
We have recently installed Mantis bugtracking system which integrates nicely with Subversion. The previous post talked of BugId feature in TortoiseSVN and we use this to tie the committing of code with a bug. I’ve added the following code to a PostCommit.bat hook in the Subversion repository.
REM Post-commit hook for MantisBT integration SET REPOS=%1 SET REV=%2 SET DETAILS_FILE=D:\PHPUploadTemp\svnfile_%REV% SET LOG_FILE=D:\PHPUploadTemp\svnfile_%REV%_Log echo ****** Source code change ******>>%DETAILS_FILE% svnlook log -r %REV% %REPOS%>>%DETAILS_FILE% echo SVN Author:>>%DETAILS_FILE% svnlook author -r %REV% %REPOS%>>%DETAILS_FILE% echo SVN Revision:%REV%>>%DETAILS_FILE% svnlook diff -r %REV% %REPOS%>>%DETAILS_FILE% "D:\Progra~1\PHP\php.exe" D:\Progra~1\Apache~1\Apache2\htdocs\Tracker\core\checkin.php
No comments yet. Be the first.
Leave a reply