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

Re: Can't get switch --relocate to work, always "Cannot replace a directory from within"

From: Markus Fischer <markus_at_fischer.name>
Date: 2006-07-04 12:41:56 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Ryan Schmidt wrote:
> It sounds like you're trying to combine an "svn switch" and an "svn
> switch --relocate" in a single operation, which I don't think you can do.
>
> Since you've done an incorrect "svn switch --relocate", we should first
> undo that:
>
>
> # Undo first relocate
> svn switch --relocate https://domain/proj/trunk file:///svn/proj
>
>
> Now, I would do this:
>
>
> # Relocate the working copy to point at https://domain instead of
> file:///svn
> svn switch --relocate file:///svn https://domain
>
> # Now switch to the new location of proj/subdir
> svn switch https://domain/svn/proj/trunk/subdir

I undo(ed?) my operation and in the new repos at https but prior to that
I made the paths be the same, so my starting point was

file:///repos/proj/subdir matched https://domain/svn/repos/proj/subdir

and ran

svn switch --relocate file:///repos https://domain/svn/repos

but from this point on my WC still gives me errors with my repos, e.g.
update gives

svn: REPORT request failed on '/svn/repos/!svn/vcc/default'
svn:
Cannot replace a directory from within

Maybe I have this problems because I'm doing this all in a subdirectory
of the checkout? I was doing this for safety reason, the project is so
big and before --relocate would change all URLs in all .svn/entries I
started with a simple directory which only has a few files in it.

So in reality I was operating from

proj_checkout/subdir

doing all the operations above.

I verified .svn/entries inside this directory all the time and the url
in <entry> was always pointing to a valid repos destination (be it
file:/// or https:/// ).

thanks,
- - Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEqkX01nS0RcInK9ARAq/CAKDLw5S/Bw8e1A2z5kM2YTNNyu/VYgCdFLag
hb5JDS2iTKuVw37a8qB/zxI=
=MQPp
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 4 12:43:40 2006

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