|
post-commit.bat 代码
REM Post-commit hook for MantisBT integration
SET REPOS=%1
SET REV=%2
SET DETAILS_FILE=E:\svnrepo\log\svnfile_%REV%
SET LOG_FILE=E:\svnrepo\log\svnfile_%REV%_Log
set APR_ICONV_PATH=F:\software\svn-win32-1.4.2\iconv
set path=%path%;e:\software\php;F:\software\svn-win32-1.4.2\bin;
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%
php.exe E:\www\mantis\core\checkin.php <%DETAILS_FILE% >%LOG_FILE%DEL %DETAILS_FILE%
DEL %LOG_FILE%
这个是网上搜索到的代码 但是他配的条件是mantis网站跟svn服务器在同一台机器上
我想将mantis配到其他机器上怎么进行?也就是我svn post到一个http的网页上去 例如 httt://127.0.0.1/mantis/caor/checkin.php
有人知道怎么写这个bat文件么? |
|