Page 1 of 1

[1.1.0] remote SVN server

Posted: Jan 03, 2008 12:07 pm
by simpson_2
Hi all,

using the guide at: ... 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 = '';
which is used for checking the svn server ip address

my post commit check script will look something like:

Code: Select all

auth=$(svnlook author -r $REV $REPOS)
dt=$(svnlook date -r $REV $REPOS)
changed=$(svnlook changed -r $REV $REPOS)
log=$(svnlook log -r $REV $REPOS)
/usr/bin/curl -k -d "log=Changeset [${REV}] by $auth, $dt$n$log$n$changed"

Re: [1.1.0] remote SVN server

Posted: Jan 14, 2008 6:59 am
by simpson_2
there seems little or no interest.....

should I do something with these updates ? or file a bug about it ?

Re: [1.1.0] remote SVN server

Posted: Jan 19, 2008 1:21 am
by paulsjv
Actually yes I would be very interested in any updates you might have!

I'm running into the same situation that you are. My Mantis install is on a different server than my SVN and it would be very nice to have them work together even when they aren't on the same machine!

Any updates you have on this would be awesome! Maybe we can work together on it?

Re: [1.1.0] remote SVN server

Posted: Jan 23, 2008 1:58 pm
by simpson_2
What is custom in this sitautaion ??

file a bug for it ??

or do we discuss everthing in detail here ??

In the mean time I've extended mantis a bit:
  • * Extra field on the user record to store SVN username
    * userapi contains a function to look up ID by SVN name
the result is that a user can submit code to SVN and his name will be attached to the bug.

Re: [1.1.0] remote SVN server

Posted: Jan 26, 2008 3:50 am
by vboctor
Thanks for your contribution, this is a useful solution for a common scenario. Please report a bug in the bug tracker and attach your solution. Then please add a link to the bug from here. Updates to code and future discussions should ideally happen on the bug.

Re: [1.1.0] remote SVN server

Posted: Jan 29, 2008 11:21 am
by rsmerker
I too am interested in this, please post your solution!!! Thank you!

Re: [1.1.0] remote SVN server

Posted: Feb 01, 2008 6:10 am
by simpson_2

Re: [1.1.0] remote SVN server

Posted: Feb 04, 2008 4:46 pm
by simpson_2
some code is attached to the bug

Re: [1.1.0] remote SVN server

Posted: Mar 17, 2008 1:18 pm
by simpson_2
Is there anything I can do to kickoff activity on this bug ??

Re: [1.1.0] remote SVN server

Posted: Mar 17, 2008 1:51 pm
by vboctor
I've added my comments to the bug. Please post future follow up to the bug.

Re: [1.1.0] remote SVN server

Posted: Mar 11, 2010 7:12 pm
by mverhagen
See ... ntegration for a detailed step-by-step walkthrough on how to integrate SVN with Mantis when SVN is running on a Windows Server and Mantis is running on a Linux server.

Re: [1.1.0] remote SVN server

Posted: Jul 11, 2012 7:47 pm
I have successfully connected the SVN running on Microsoft Windows Server 2008 to Mantis 1.2.11 (Schema Version 182) running on Turnkey LAMP 11.3.

I need to find a place to host my template implementation procedure that anyone can use.