1.准备资源:mantis1.26或更高;phpstudy2010(apache,php,mysql的集成环境);svn服务器及客户端;
2.建立好phpstudy的运行环境,phpinfo.php测试通过。在php.ini的配置文件中开启相关扩展(默认的已经足够了)。
3.mantis安装通过,并添加同svn相同的用户。密码不同不妨碍。
4.svn客户端,在该项目属性中添加
bugtraq:label = issue
bugtraq:url = http://192.168.0.8/mantis/view.php?id=%BUGID%
bugtraq:message = issue %BUGID%
bugtraq:warnifnoissue = true
根据自己的ip自己设置。
5.svn服务器对应项目的hooks里添加2个bat文件
内容如下:
(1)post-commit.bat
REM Post-commit hook for MantisBT integration
rem REPOS svn版本库的路径
rem REV 版本信息
SET REPOS=%1
SET REV=%2
SET DETAILS_FILE=I:\Repositories\mantis\log\svnfile_%REV%
SET LOG_FILE=I:\Repositories\mantis\log\svnfile_%REV%_Log
#set