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:

@ECHO OFF
SETLOCAL

rem SET REPOS=%1
SET REPOS="Test"
SET REV=%2

SET 
CHECKINURL="http://localhost/mantis/plugin.php?page=Source/checkin<http://localhost/mantis116to124/plugin.php?page=Source/checkin>
"

SET /a LOGFILE=%RANDOM%+100000
SET LOGFILE=svn_%REV%_%LOGFILE:~-5%_log.TMP
SET CURL="C:\webserver\curl\curl-7.21.4\bin\curl.exe"

%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!

-- 
AlainD.


> Date: Fri, 3 Feb 2012 08:11:14 +0100
> From: "Malgarida Edoardo" <edoardo.malgar...@salvagninigroup.com>
> Subject: [mantisbt-help] SVN and post-commit hook
> To: <mantisbt-help@lists.sourceforge.net>
> Message-ID:
>        <
> 1ed714c0278a82438ba1b6bde1e7782403244...@sshpbld1c4m1.europe.salvagninigroup.com
> >
>
> 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
> code.
> 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
> <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
>
>


-- 

AlainD.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
mantisbt-help mailing list
mantisbt-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-help

Reply via email to