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

Re: move a directory "from within"

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-07-26 16:57:16 CEST

On Jul 26, 2006, at 05:49, Simon Burton wrote:

> I have checked out a subdirectory of my repos:
> ~/$ svn co svn+ssh://rubis/export/repos/elefant/test
> Checked out revision 220.
> ~/$ cd test/
> ~/test$ svn up
> At revision 220.
> All is well.
> Now (from another working copy) this subdirectory is moved to
> "new_test":
> ~/elefant-root$ svn mv test/ new_test/
> A new_test/test
> D test
> ~/elefant-root$ svn commit -m" testing svn... "
> Adding new_test
> Adding new_test/test
> Deleting test
> Committed revision 221.
> Now from the test working copy:
> ~/test$ svn up
> svn: Cannot replace a directory from within
> ~/test$ svn switch svn+ssh://rubis/export/repos/elefant/trunk/new_test
> svn: Cannot replace a directory from within

If you "svn move" a part of your repository that others are using as
the base of their working copies, then they will need to "svn switch"
their working copy to the new address, since "svn up" will produce
the error message you saw.

I am unable to reproduce the problem you see when running "svn
switch". It works correctly for me, with Subversion 1.3.2 on Mac OS X
10.4.7 PPC. I'm using the http protocol, not svn+ssh.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 26 16:59:38 2006

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.