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

Re: svn copy after forced removal of copied file

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-07-31 19:32:50 CEST

On Jul 31, 2006, at 15:42, Kevin Musker wrote:

> I experienced a problem with the svn command line client and am pretty
> sure it's a bug.
>
> If I svn cp a file from the repository, and subsequently delete it, I
> get an error if I try to copy it in again -
>
>> svn cp $SVNROOT/cheese.cc .
>> svn rm --force cheese.cc
>> svn cp $SVNROOT/cheese.cc .
> svn: 'cheese.cc' is not under version control

User error. Don't do that.

If you copied the file

svn cp $SVNROOT/cheese.cc .

and then decided, before committing, that you didn't mean to copy it
after all, don't

svn rm --force cheese.cc

Instead, revert the copy:

svn revert cheese.cc

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 31 19:34:24 2006

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.