?????????Mantis??SVN??????????????
????SVN??????TortoiseSVN?????????? http://tortoisesvn.net/
????SVN??????????????аɡ?
????Mantis???????? http://www.mantisbt.org/
??????????TortoiseSVN????????????????????????????????????subversion?????????????????
????bugtraq:label = issue
????bugtraq:url = http://%3cmantisserver%3e/mantis/view.php?id=%BUGID%
????bugtraq:message = issue %BUGID%
????bugtraq:warnifnoissue = true
???????????SVN?汾???????hooks???????????post-commit.bat??????????????????
REM Post-commit hook for MantisBT integration
rem REPOS svn?汾???·??
rem REV ?汾???
rem DETAILS_FILE ??汾?????????汾????????????log????????????????
rem set PHPRC=D:EasyPHPapache ???????windows ???μ? php.ini ??????? easyphpapach ????
rem ?????? checkin.php ???????????????? ? checkin_svn.php ?????????????????? checkin_svn.php
rem ??????????? $t_comment = mb_convert_encoding($t_comment?? "utf-8"??"GB2312");
rem ???λ???? “ foreach ( $t_issues as $t_issue_id ) { ”???
rem mb_convert_encoding ??????????????php_mbstring.dll?????~~
rem $t_comment   = iconv("UTF-8"??"GB2312//TRANSLIT"??$t_comment);  ?????????????Ч?????
SET REPOS=%1
SET REV=%2
SET DETAILS_FILE=D:svn o1logsvnfile_%REV%
SET LOG_FILE=D:svn o1logsvnfile_%REV%_Log
set APR_ICONV_PATH=D:EasyPHPSubversioniconv
set PHPRC=D:EasyPHPapache
set path=%path%;D:EasyPHPphp5;D:EasyPHPSubversionin;
echo ****** Source code change ******>>%DETAILS_FILE%
echo SVN ?????: >>%DETAILS_FILE%
svnlook author -r %REV% %REPOS%>>%DETAILS_FILE%
echo SVN ???????: >>%DETAILS_FILE%
svnlook date -r %REV% %REPOS%>>%DETAILS_FILE%
echo SVN ?汾:  >>%DETAILS_FILE%
echo %REV%>>%DETAILS_FILE%
echo SVN ?????: >>%DETAILS_FILE%
svnlook log -r %REV% %REPOS%>>%DETAILS_FILE%
echo SVN ??????: >>%DETAILS_FILE%
svnlook diff -r %REV% %REPOS%>>%DETAILS_FILE%
rem php.exe .checkin_svn.php ????????????
php.exe D:EasyPHPwwwmantiscorecheckin_svn.php <%DETAILS_FILE%>%LOG_FILE%
del %DETAILS_FILE%
del %LOG_FILE%
?????????mantis??????μ?config_inc.php???????????????mantis???????SVN???????
????$g_source_control_notes_view_status = VS_PUBLIC;
????$g_source_control_account = 'SVN';
????$g_source_control_set_status_to = OFF;
????$g_source_control_regexp = "/issue [#]{0??1}(d+)/i";
?????????Щ???????????SVN???°汾??????????????????????????????
???????磬??????????????svn commit??????????issue???????????????????? issue/bug  ????
??????????????message??????????????????svn??hook???????mantis???????????д??????????????Щ?????