[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: relocating an SVN repository

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: Thu, 17 Jan 2008 01:04:24 -0600

On Jan 16, 2008, at 10:42, Zack Galbreath wrote:

> I need to move an SVN repository from one domain to another. I
> would like to do this in a seamless fashion so that users don't
> have to run svn switch or check out a fresh copy of the repository
> from the new location. Is this possible?

No, I don't think it's possible. Instruct your users to "svn switch --
relocate" after relocating the repository.

> I tried to accomplish this by using apache2's RedirectMatch
> directive. Here's what I put into the config file on the old server:
> RedirectMatch permanent ^/svn/reposName/(.*)$ http://www.new-
> domain.com/svn/reposName/$1
> If I access the repository through a web browser using the old
> address the redirect works properly. If I try to do an svn
> checkout using the old address it fails with the following message:
> bash-3.2$ svn co http://www.old-domain.com/svn/reposName/trunk
> reposName
> svn: PROPFIND request failed on '/svn/reposName/trunk'
> svn: PROPFIND of '/svn/reposName/trunk': 301 Moved Permanently
> (http://www.old-domain.com)
> I've confirmed that checking out the repository by using the new
> address works properly, so it's not a misconfiguration on the new
> server. Is what I'm trying to do possible, or am I going to have
> to tell all of my users to run svn switch?

Redirects are a nice idea, which I tried myself with earlier versions
of Subversion, but Subversion does not seem to support them.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-17 09:02:51 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.