From: Alain D'E. <ala...@gm...> - 2012-02-02 10:55:12
|
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" <edo...@sa...> > Subject: [mantisbt-help] WebSVN and post-commit hook > To: <man...@li...> > Message-ID: > < > 1ED714C0278A82438BA1B6BDE1E77824032446FD@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. |