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

Re: Server replacement

From: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-07-28 23:01:45 CEST

* Felix Collins <felix@keyghost.com> [2004-07-28 14:46]:
> >I would add 'svn switch...' on the working copies too.
>
> Does svn switch work between repositories? I tried it between repos and
> couldn't get it to work. It was using TortoiseSVN though.

You have to use svn switch --relocate, which changes the working copy's notion
of the repository location. If your repository moved from
http://old.example.com/svn to http://new.example.com/svn, then run this in
your working copy:

svn switch --relocate http://old.example.com/svn http://new.example.com/svn .

This is the command you would run no matter where in the repository your
working copy corresponds to. That is, if your working copy is from
http://old.example.com/svn/proj/trunk, do *not* include the "/proj/trunk"
part. (I always find the syntax for svn switch --relocate somewhat confusing,
so that's why I'm being so explicit.)

-- Mike

-- 
Michael W. Thelen
The great thing about democracy is that is gives every voter a chance to do
something stupid.
                -- Art Spander

Received on Wed Jul 28 23:02:23 2004

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