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

Re: Accidently deleted items Please help me undo

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Wed, 1 Apr 2009 18:21:31 -0500

On Mar 31, 2009, at 17:04, webpost_at_tigris.org wrote:

>> svn revert
>> ?
>
> No, the problem with that is that I lose all the local changes I
> made. I had changed several files inside the folder before I
> accidently deleted it before I committed it.
>
> I do have copies of the files (they were sent to the Trash). I
> guess the easiest way is to revert and then replace the modified
> files that are in my Trash.

I'm surprised Subversion allowed "svn rm" to occur on a directory
with local modifications. On my system (Subversion 1.6.0 on Mac OS X
10.4.11) it shows a clear warning. If I have modified a file in the
directory I'm trying to delete:

$ svn rm somedirectory
svn: Use --force to override this restriction
svn: 'somedirectory/existingfile' has local modifications
$

If I have an unversioned file in the directory I'm trying to delete:

$ svn rm somedirectory
svn: Use --force to override this restriction
svn: 'somedirectory/newfile' is not under version control
$

Did you see this message and then use --force?

I also cannot believe that Subversion would send any files to the
Trash can, since that's a GUI concept and the Subversion libraries
don't know about your GUI.

Are you using the svn command line client or something else? (if
something else, what?)

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1511639

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-02 01:23:18 CEST

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.