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

Re: Renaming a checked out repository path

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-04-01 16:59:16 CEST

On Apr 1, 2005, at 6:40 AM, Torsten Landschoff wrote:

> Hi *,
>
> As I am reorganizing some subversion repositories today I stumbled
> across a "misfeature" in subversion. Basically I was splitting a trunk
> directory from "trunk" to "trunk-2.1" and "trunk-2.2" for different
> upstream version of the software I am working on.
>
> Now I was curious what would happen to checked-out copies. After
> renaming I got the following error message from svn update:
>
> svn: Cannot replace a directory from within
>

Subversion doesn't have moves, it has copies and deletes. So what you
did was copy the trunk directory, then delete it. So when you 'svn
update' a working copy of trunk, the server wants to delete the whole
working copy. But that's not allowed, and what you see is that
bizarre error message.

Subversion has no way of expressing "true moves" yet, that's the next
thing we'd like to work on. If it did, then the server might be smart
enough to send 'switch' operations during updates, instead of "delete;
add" like it does now.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 1 17:02:06 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.