During my tests when installing my system I tried also on a windows machine
before, and the hook I had was like the following. Maybe you could try to
adapt for your own environment:
rem SET REPOS=%1
SET /a LOGFILE=%RANDOM%+100000
%CURL% -d "repo_name=%REPOS%" -d "data=%REV%" %CHECKINURL% >> %LOGFILE%
CALL DEL "%LOGFILE%"
I hope it will help.
PS: it is normal that when you tried
http://localhost/mantis/plugin.php?page=Source/checkin it did not work
because you missed 2 required parameters to the chekin script: the
repo_name and the data parameters!
> Date: Fri, 3 Feb 2012 08:11:14 +0100
> From: "Malgarida Edoardo" <edoardo.malgarida@...>
> Subject: [mantisbt-help] SVN and post-commit hook
> To: <mantisbt-help@...>
> Content-Type: text/plain; charset="us-ascii"
> My system has the following components:
> mysql 5.0.51a
> PHP 5.3.5
> Apache 2.2.21
> mantis bt 1.2.28
> SVN 1.6.17
> websvn 2.3.3
> plugins-source-integration 0.13.2-177
> I'm in trouble with SVN post-commit hook. I''m working in windows (XP
> sp3), so the hook script has to be a .bat file written in a windows good
> in Source plug-in the post-commit.tmpl is written for linux... Who can
> help me?
> Then if I trie to see
> <http://localhost/mantis/plugin.php?page=Source/checkin> I obtain
> "APPLICATION ERROR #200
> A required parameter to this page (api_key) was not found"
> Edoardo Malgarida