Hi,
I think that your URL content is malformed. It should not be a path, but a
real URL.
Try this:

URL="http://my.mantis.server/plugin.php?page=Source/checkin";

For example, this is what I have for my config:

#######################################
#REPOS="$1"
REPOS="PA_Application"
REV="$2"

MANTISURL="http://10.40.16.201/mantis";
CHECKINURL="${MANTISURL}/plugin.php?page=Source/checkin"
CURL="/usr/bin/curl"

DATE=`date +%Y%m%d%H%M%S`
LOGFILE="/tmp/svn/log/svn_postcommit_${REPOS}_${REV}_${DATE}.log"

$CURL -d "repo_name=${REPOS}" -d "data=${REV}" $CHECKINURL >> $LOGFILE

rm -f $LOGFILE
#######################################

Date: Wed, 1 Feb 2012 16:55:41 +0100
> From: "Malgarida Edoardo" <edoardo.malgar...@salvagninigroup.com>
> Subject: [mantisbt-help] WebSVN 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:
>
>
>
> OS xp -pro sp3
> 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 don't succeed in viewing "Diff", "file" and "browse" in changsets and
> also post-commit doesn't work.
>
> I followed these instructions:
>
> http://blog.crazytje.be/mantis-svn-inte ... the-1-2-x/
> <http://blog.crazytje.be/mantis-svn-integration-in-the-1-2-x/>
> http://blog.crazytje.be/mantis-svn-inte ... -the-note/
> <http://blog.crazytje.be/mantis-svn-integration-adding-extra-info-to-the
> -note/>
>
> My post-commit file is this:
>
> <<
> #!/bin/sh
> # Copyright (c) 2010 John Reese
> # Licensed under the MIT license
> REPOS="$1"
> REV="$2"
> log=$(svnlook log -r $REV $REPOS)
> URL="file:///C:/server/apache/htdocs/mantis/plugin.php?page=Source/check
> in"
> PROJECT="bug_repo_test"
> LOG_FILE=`mktemp /tmp/svn_${PROJECT}_${REV}_log.XXX`
> CURL=C:/php/ext/curl
> ${CURL} -d "repo_name=${PROJECT}" -d "data=${REV}" ${URL} >> ${LOG_FILE}
>
>
>
>
> best regards, Edoardo from Italy.
>
>
>
>
>
>
>
>
>
> Edoardo Malgarida
>
>
-- 

AlainD.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
mantisbt-help mailing list
mantisbt-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-help

Reply via email to