[1.1.0] remote SVN server

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
simpson_2
Posts: 7
Joined: Jan 03, 2008 10:09 am
Location: Amsterdam, Netherlands

[1.1.0] remote SVN server

Post by simpson_2 » Jan 03, 2008 12:07 pm

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

simpson_2
Posts: 7
Joined: Jan 03, 2008 10:09 am
Location: Amsterdam, Netherlands

Re: [1.1.0] remote SVN server

Post by simpson_2 » Jan 14, 2008 6:59 am

there seems little or no interest.....

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

paulsjv
Posts: 1
Joined: Jan 19, 2008 1:20 am

Re: [1.1.0] remote SVN server

Post by paulsjv » Jan 19, 2008 1:21 am

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?

simpson_2
Posts: 7
Joined: Jan 03, 2008 10:09 am
Location: Amsterdam, Netherlands

Re: [1.1.0] remote SVN server

Post by simpson_2 » Jan 23, 2008 1:58 pm

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.

vboctor
Site Admin
Posts: 1286
Joined: Feb 13, 2005 5:11 pm
Location: Redmond, Washington
Contact:

Re: [1.1.0] remote SVN server

Post by vboctor » Jan 26, 2008 3:50 am

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.
Migrate your MantisBT to the MantisHub Cloud

rsmerker
Posts: 1
Joined: Jan 29, 2008 11:09 am

Re: [1.1.0] remote SVN server

Post by rsmerker » Jan 29, 2008 11:21 am

I too am interested in this, please post your solution!!! Thank you!

simpson_2
Posts: 7
Joined: Jan 03, 2008 10:09 am
Location: Amsterdam, Netherlands

Re: [1.1.0] remote SVN server

Post by simpson_2 » Feb 01, 2008 6:10 am


simpson_2
Posts: 7
Joined: Jan 03, 2008 10:09 am
Location: Amsterdam, Netherlands

Re: [1.1.0] remote SVN server

Post by simpson_2 » Feb 04, 2008 4:46 pm

some code is attached to the bug

simpson_2
Posts: 7
Joined: Jan 03, 2008 10:09 am
Location: Amsterdam, Netherlands

Re: [1.1.0] remote SVN server

Post by simpson_2 » Mar 17, 2008 1:18 pm

Is there anything I can do to kickoff activity on this bug ??

vboctor
Site Admin
Posts: 1286
Joined: Feb 13, 2005 5:11 pm
Location: Redmond, Washington
Contact:

Re: [1.1.0] remote SVN server

Post by vboctor » Mar 17, 2008 1:51 pm

I've added my comments to the bug. Please post future follow up to the bug.
Migrate your MantisBT to the MantisHub Cloud

mverhagen
Posts: 1
Joined: Mar 11, 2010 6:44 pm

Re: [1.1.0] remote SVN server

Post by mverhagen » Mar 11, 2010 7:12 pm

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.

JasonTEPOORTEN
Posts: 2
Joined: Jul 04, 2012 8:35 pm
Contact:

Re: [1.1.0] remote SVN server

Post by JasonTEPOORTEN » Jul 11, 2012 7:47 pm

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

Post Reply