WebSVN and post-commit hook
Posted: 01 Feb 2012, 14:46
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 don't succeed in viewing Diff", "file" and 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-inte ... -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/checkin"
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}
>>
Who can help me?
best regards, Edoardo from Italy.
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 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-inte ... -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/checkin"
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}
>>
Who can help me?
best regards, Edoardo from Italy.