Thank you for your answer
The command has to be executed when a commit is performed in SVN, not at a scheduled time.
So I guessed it has to be related to SVN hooks; I checked in SourceWebSVN extension plugin and found post-commit.tmpl which contains the following code:
Code: Select all
#!/bin/sh
# Copyright (c) 2012 John Reese
# Licensed under the MIT license
REV="$2"
URL="http://localhost/mantisbt/plugin.php?page=Source/checkin"
PROJECT="Repository Name"
LOG_FILE=`mktemp /tmp/svn_${PROJECT}_${REV}_log.XXX`
CURL=/usr/bin/curl
${CURL} -d "repo_name=${PROJECT}" -d "data=${REV}" ${URL} >> ${LOG_FILE}
In the github page of source-integration plugin, they also talk about curl
import via curl (could run into timeouts on large repositories, or block your webserver)
and propose the following code:
Code: Select all
curl "http://host.domain.tld/mantisbt/plugin.php?page=Source/import&id=all&api_key=<YOUR_API_KEY>"
I'm going to try it out tomorrow at work and let you know
Edit: I could not manage to make it work, so I give up for now