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

moving a directory in the repository and working copy?

From: David A. Mellis <dam_at_mellis.org>
Date: Tue, 29 Apr 2008 12:23:30 -0400

Hi,

Is it possible to move a directory in the repository and my working
copy, without having to transmit its contents? I did a move between
URLs and switched my working copy to the new URL, but if I move my
working copy to match its new location in the repository, its parent
directory gets confused.

That is:

svn mv http://svn/trunk/foo http://svn/releases/bar
cd ~/trunk/foo
svn switch http://svn/releases/bar
cd ../..
mv trunk/foo releases/bar
cd releases
svn update

gives:

svn: Failed to add directory 'bar': object of the same name already exists

(at least, that's the basic idea; I actually used different paths).

Is there a better way to do this? Or am I going to need to download
the directory from the server with an update after doing the move in
the repository?

David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-29 20:27:37 CEST

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.