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

Re: BUG in svn switch with A+ files

From: Francois Beausoleil <francois.beausoleil_at_gmail.com>
Date: 2007-02-03 01:26:25 CET

Hi !

2007/1/31, Mycroft Holmes <psion.s5@gmail.com>:
> [C:\Files\r2]svn switch svn://localhost/test/release/r2
> svn: Failed to add file 'd.txt': object of the same name already exists

This is not a bug. After the copy, the WC still points to the
original location, and still has the original modifications. You'd
have to revert, remove unknown files, and then switch.

I know what you want to achieve: svn should notice that both files
are "the same". Except, they aren't. If you create the file, copy,
then change the file again, what should Subversion do ? Replace your
local mods ? That's a no. Subversion is very careful about never
losing the user's data.

Hope that helps.

-- 
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/
Received on Sat Feb 3 01:26:42 2007

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.