Page 1 of 1

[1.1.0] remote SVN server

Posted: 03 Jan 2008, 17:07
by simpson_2
Hi all,

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

Re: [1.1.0] remote SVN server

Posted: 14 Jan 2008, 11:59
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: 19 Jan 2008, 06:21
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: 23 Jan 2008, 18:58
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: 26 Jan 2008, 08:50
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: 29 Jan 2008, 16:21
by rsmerker
I too am interested in this, please post your solution!!! Thank you!

Re: [1.1.0] remote SVN server

Posted: 01 Feb 2008, 11:10
by simpson_2

Re: [1.1.0] remote SVN server

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

Re: [1.1.0] remote SVN server

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

Re: [1.1.0] remote SVN server

Posted: 17 Mar 2008, 18:51
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: 12 Mar 2010, 00:12
by mverhagen
See http://guruce.com/blogpost/visualsvn-su ... 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: 12 Jul 2012, 00:47
by JasonTEPOORTEN
Hi,
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.
Regards,
Jason