using the guide at: http://alt-tag.com/blog/archives/2006/1 ... ubversion/
I quickly found out that both SVN and Mantis should be on the same machine ( a install where we have mantis on the SVN machine referencing the remote database would be possible as well ofcourse )
since the above 2 options are not really usefull in my situation I came up with the following:
I copied the core/checkin.php to core/checkincurl.php
this is modified to look for the comment in $_POST['log'] and check if the posting party ( $_SERVER['REMOTE_ADDR'] ) is the SVN server.
it then uses the rest of the code present in checkin.php
I introduced:
$g_source_control_server = 'my.svnserver.org';
which is used for checking the svn server ip address
my post commit check script will look something like:
Code: Select all
#!/bin/bash
REPOS="$1"
REV="$2"
auth=$(svnlook author -r $REV $REPOS)
dt=$(svnlook date -r $REV $REPOS)
changed=$(svnlook changed -r $REV $REPOS)
log=$(svnlook log -r $REV $REPOS)
n=$'\n'
/usr/bin/curl -k -d "log=Changeset [${REV}] by $auth, $dt$n$log$n$changed" https://my.svnserver.org/mantis/core/checkincurl.php