I'm trying to integrate subversion into Mantis. i have read alot about it from different sources. For example:
http://alt-tag.com/blog/archives/2006/1 ... ubversion/
I'm stuck at a realy early stage...
Mantis 1.0.8 php 5.2.5, win server
When i'm trying to test the checkin.php with following ( I have an open issue in mantis (0000050):
cmd: path to "php.exe" "path to checkin.php" "issue #50".
All that happens is the console is waiting for input, I'm not that fammiliar with php but I have understod that checkin.php is waiting for stdin. So if I submits "issue #50" and hits enter it all goes well.
But shouldn't the argument I have submited in the first place be enough (i.e. i have understod it as SVN will send the argument as http request)?
config_inc.php:
Code: Select all
$g_source_control_notes_view_status = VS_PUBLIC;
$g_source_control_account = 'svn';
$g_source_control_set_status_to = RESOLVED;
$g_source_control_regexp = "/\bissue [#]{0,1}(\d+)\b/i";
Code: Select all
REM Post-commit hook for MantisBT integration
SET REPOS=%1
SET REV=%2
SET DETAILS_FILE=C:\ToMantisFiles\svnfile_%REV%
SET LOG_FILE=C:\ToMantisFiles\svnfile_%REV%_Log
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%
Y:\php.exe Z:\core\checkin.php <%DETAILS_FILE% >%LOG_FILE%
DEL %DETAILS_FILE%
DEL %LOG_FILE%Please can someone point me in a direction. I have tried a lot of solutions.
Best regards
Carl-Otto