Project

General

Profile

Setting up Subversion with Redmine

Added by David B about 14 years ago

I can't find any documentation about setting up the connection of subversion and redmine.

I am currently running Centos5 and have just installed redmine and ruby.

I also have Apache2 and MySQL 5 running.

I have had subversion running for quite sometime and have accessed it in the past using TortoiseSVN on our Windows computers.

Now, I want to utilise the Repository browsing and hopefully use the Code Review plugin to assist in development.

I have always connected to the respository from the window client computers through file://server_ip/dir/to/repository. But how do I get redmine to connect to a repository on the linux box its installed on?

Thanks for any help!


Replies (8)

RE: Setting up Subversion with Redmine - Added by Felix Schäfer about 14 years ago

If it's on the same box, just put file:///absolute/path/to/the/svn/repository in the source field, and leave username and password blank, that should work (provided your user running rails / apache has enough rights on said repository).

RE: Setting up Subversion with Redmine - Added by David B about 14 years ago

apologies might need a bit 'holding-of-the-hand' as im totally new to redmine and ruby/rails...

I have done what you requested by adding file///absolute/path. Now WEbrick provides the following error:

svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///absolute/path/to/the/svn/repository'
svn: Expected FS format '2'; found format '3'
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///absolute/path/to/the/svn/repository'
svn: Expected FS format '2'; found format '3'
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///absolute/path/to/the/svn/repository'
svn: Expected FS format '2'; found format '3'

I know the repos are there and I know they work as they have been there for ages. Any ideas what next?

RE: Setting up Subversion with Redmine - Added by Felix Schäfer about 14 years ago

I'll go out on a limb here, but just to make sure: you took the real path, not actually /absolute/path and so on, right?

Anyway, that looks like a genuine svn error, and I suppose that there is a version mismatch between the repository and the svn client installed on the server, say is the repository in a 1.5 or 1.6 format, and svn --version on the server says it's 1.4.something?

RE: Setting up Subversion with Redmine - Added by David B about 14 years ago

Yea, i am replacing with the real path. Thanks for checking though ;)

when i enter 'svn --version' i get version 1.4.2

RE: Setting up Subversion with Redmine - Added by Felix Schäfer about 14 years ago

Ok, from what I garnered from the little googling I did, you will need at least a 1.5 client to access the repository, so you'll have to install at least a 1.5 svn client on the server.

RE: Setting up Subversion with Redmine - Added by David B about 14 years ago

hm, great stuff, now I just need to figure out how to upgrade my svn client :D

RE: Setting up Subversion with Redmine - Added by David B about 14 years ago

Alright, I Have managed to upgrade SVN to 1.6! And now its all showing in the repository tab. Thanks for all the help guys!

    (1-8/8)