[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: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 1 Apr 2009 10:36:45 -0400

As you've already noticed, the files you've deleted via "svn delete"
have been deleted from the working copy itself which is the only place
where your non-committed changes were located. There is no way to
undelete the deleted files (although a version control system with
undo capabilities would be rather intriguing.)

It may be possible to go through the .svn directories, unmark the
files as deleted, and then move the copies from your trash back to the
working directory, but it really doesn't do much more than doing a
revert and moving your files from the Trash back to the working
directory.

One of the advantages with distributed file systems like Git is that
it allows you to "version" your work without having to save it back to
the repository. When I've used Git, I'll continuously save my changes
back to my private repository, then at the end of the day, commit my
changes back to the public repository.

Of course, the ability of Git to do just this causes another problem:
Getting developers to actually commit their changes to the public
repository on a regular basis. I've had a lot of problems -- not with
Git -- but with other distributed revision control systems and with
ClearCase UCM on this very issue. Many developers like it when you can
live in your own little world and don't have to interact with other
people. Video games and distributed version control makes it very easy
for many developers to fall into that very trap.

On Tue, Mar 31, 2009 at 6:04 PM, <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 accidentally 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.
>
> Thanks,
> Jeremy
>
>
>>
>>  --
>> You design it, I'll build it
>> e-mail: michael.l.brown_at_philips.com
>> desk: 608-288-6969
>> cell: 608-206-6843
>>
>> -----Original Message-----
>> From: webpost_at_tigris.org [mailto:webpost_at_tigris.org]
>> Sent: Tuesday, March 31, 2009 4:35 PM
>> To: users_at_subversion.tigris.org
>> Subject: Accidently deleted items Please help me undo
>>
>> I just accidently did
>>
>> svn rm Folder
>>
>> but did not want to remove Folder from the repository.  I haven't yet committed.  Is there anyway to undo this action?
>>
>> Thanks,
>> Jeremy
>>
>> ------------------------------------------------------
>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1499914
>>
>> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>>
>> The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1500132
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1507549
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-01 16:37:47 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.