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

relocating an SVN repository

From: Zack Galbreath <zack.galbreath_at_kitware.com>
Date: Wed, 16 Jan 2008 11:42:06 -0500

Hi,

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?

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?

-Zack

---------------------------------------------------------------------
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-16 17:48:11 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.