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

Replacing a removed file

From: <Mathias.Weinert_at_gfa-net.de>
Date: 2005-05-30 12:52:54 CEST

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


Received on Mon May 30 12:53:38 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.