mike.junk@NOntlworldSPAM.com
25-Apr-2005 11:11 #419
Brief guide to TortoiseSVN integration on Win32. This will allow you to enter a Mantis issue number when doing an SVN commit, automatically add a note to the Mantis 'notes' log containing info about the change, and show a link to the issue from TortoiseSVN log.
1. Set properties for your SVN repository (e.g. in TortoiseSVN, use the file properties dialog) to include the following:
bugtraq:label = issue
bugtraq:url = http://
bugtraq:message = issue %BUGID%
bugtraq:warnifnoissue = true
2. Create a post commit hook file in the SVN respository hooks directory (
REM Post-commit hook for MantisBT integration
SET REPOS=%1
SET REV=%2
SET DETAILS_FILE=
SET LOG_FILE=
echo ****** Source code change ******>>%DETAILS_FILE%
svnlook log -r %REV% %REPOS%>>%DETAILS_FILE%
echo SVN Revision:%REV%>>%DETAILS_FILE%
svnlook diff -r %REV% %REPOS%>>%DETAILS_FILE%
DEL %DETAILS_FILE%
DEL %LOG_FILE%
3. Add the following to your Mantis config_inc.php
#Integration to SVN
$g_source_control_notes_view_status = VS_PUBLIC;
$g_source_control_account = '
$g_source_control_set_status_to = OFF;
$g_source_control_regexp = "/\bissue [#]{0,1}(\d+)\b/i";
1 comment:
Post a Comment