[1.1.0] remote SVN server

Post about your customizations to share with others.

Moderators: Developer, Contributor

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

[1.1.0] remote SVN server

Post 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
simpson_2
Posts: 7
Joined: 03 Jan 2008, 15:09
Location: Amsterdam, Netherlands

Re: [1.1.0] remote SVN server

Post by simpson_2 »

there seems little or no interest.....

should I do something with these updates ? or file a bug about it ?
paulsjv
Posts: 1
Joined: 19 Jan 2008, 06:20

Re: [1.1.0] remote SVN server

Post 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?
simpson_2
Posts: 7
Joined: 03 Jan 2008, 15:09
Location: Amsterdam, Netherlands

Re: [1.1.0] remote SVN server

Post 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.
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: [1.1.0] remote SVN server

Post 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.
Migrate your MantisBT to the MantisHub Cloud
rsmerker
Posts: 1
Joined: 29 Jan 2008, 16:09

Re: [1.1.0] remote SVN server

Post by rsmerker »

I too am interested in this, please post your solution!!! Thank you!
simpson_2
Posts: 7
Joined: 03 Jan 2008, 15:09
Location: Amsterdam, Netherlands

Re: [1.1.0] remote SVN server

Post by simpson_2 »

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

Re: [1.1.0] remote SVN server

Post by simpson_2 »

some code is attached to the bug
simpson_2
Posts: 7
Joined: 03 Jan 2008, 15:09
Location: Amsterdam, Netherlands

Re: [1.1.0] remote SVN server

Post by simpson_2 »

Is there anything I can do to kickoff activity on this bug ??
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: [1.1.0] remote SVN server

Post by vboctor »

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: 11 Mar 2010, 23:44

Re: [1.1.0] remote SVN server

Post 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.
JasonTEPOORTEN
Posts: 2
Joined: 05 Jul 2012, 01:35
Contact:

Re: [1.1.0] remote SVN server

Post 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
Post Reply