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

Re: Replacing a removed file

From: <kfogel_at_collab.net>
Date: 2005-05-30 16:17:13 CEST

Mathias.Weinert@gfa-net.de writes:
> Can anybody tell me why subversion acts different if I remove a file and
> add a file with the same name in the same commit (this results in a 'R'
> status) or if I remove the file and try to do an 'svn cp' where the target
> is the removed file (this results in an warning/error)?
> Here an example which might make it easier to understand my question:
> $ svn rm A.txt
> D A.txt
> $ cp B.txt A.txt
> $ svn add A.txt
> A A.txt
> $ svn st
> R A.txt
> $ svn revert A.txt
> $ svn rm A.txt
> D A.txt
> $ svn cp B.txt A.txt
> svn: 'A.txt' is scheduled for deletion; it must be committed before being
> overwritten

No -- that is very odd, and I also do not know why we are inconsistent.

Either the 'svn add' in your first example should give an error, or
the 'svn cp' in the second example should not. Or so I would have

Does anyone know what's going on here?


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 30 16:57:58 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.