Re: WebSVN and post-commit hook
"Alain D'EURVEILHER" <[email protected]> Fri, 3 Feb 2012 09:56:21 +0100
| Newsgroups | gmane.comp.bug-tracking.mantis.general |
|---|---|
| Message-ID | <CAGr8iPB3tjgYPiDLO_=hGvmLzQsOnwdUvPbeKc9TkEMSzYLpRQ@mail.gmail.com> |
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.malgarida-DhKxegi6ZjY9FUPbx57eQ0EOCMrvLtNR@public.gmane.org> > Subject: [mantisbt-help] SVN and post-commit hook > To: <[email protected]> > Message-ID: > < > 1ED714C0278A82438BA1B6BDE1E7782403244D77-PN/O/TavLizzf6CITXh7l8MSKv6sbORD40lBAcu9F62Zox4op4iWzw@public.gmane.org > > > > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/mantisbt-help