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

Re: Updating involving deleted/moved directories

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-03-17 17:11:56 CET

On Tue, 2004-03-16 at 09:35, Jack Ivey wrote:
> Hi all,
> I've run up against a problem when updating a working area after
> a directory has been moved. If the client finds any files
> that are not under version control, it stops in the middle
> with an error message. If you run update again, the command
> runs to completion, (unless another non-version-controlled file
> is hit).

The problem here is that svn's move operation isn't a "true move". It's
a copy of a directory, and the deletion of the old directory.

So when your working copy receives a move, it's getting an "addition" of
a new directory (which historically, is a copy of the old one), and also
trying to outright delete the old directory.

Subversion will never destroy unversioned data, however. So if it's
trying to delete a versioned directory that contains unversioned data,
it will delete everything *but* the paths that lead down to the
unversioned data.

> If you keep running update until it completes, you end up with
> all the non-version-controlled files left where they were,
> and the version-controlled files in the new location.

I don't understand what errors you're getting. You say that 'svn up'
"stops in the middle with an error message". That's too vague a
description. Try sending us either a transcript, or an exact
reproduction recipe that demonstrates the problem.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 17 17:12:28 2004

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.