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

Re: Inadvertent Deletion of Files and Folders

From: BladeOfLight16 <bladeoflight16_at_gmail.com>
Date: Tue, 6 Aug 2013 21:51:51 -0400

On Tue, Aug 6, 2013 at 9:31 PM, Jack Cane <jwcane_at_enwphotos.com> wrote:

> Please advise if there is a way to undelete files accidentally deleted
> from SVN. I had intended only to remove them from the depository, but they
> were also deleted from my hard drive.
>

Assuming you didn't have any local, uncommitted changes, you can get them
from the previous revision.

   1. Bring up repo browser and navigate to the SVN directory where they
   were checked in.
   2. Click Revision (in the top right corner in TSVN 1.7), and choose the
   revision that has the files you want. The Show Log button you see here will
   probably be helpful.
   3. Right click the file you want to download, and use "Save As...".

In the future, you can delete files from the repository and leave them on
your local machine using "Unversion and add to ignore list"; if you don't
want it on the ignore list, you'll have to either manually remove the
property from the parent folder or revert the property change (unless
something changed in 1.8). Note that using "Unversion and add to ignore
list" will still cause the files to be deleted from any other checked out
copy (on your machine or other people's) when they perform an update, and
they'll get conflicts if the file has local changes when they do so.

If you had local modifications, you might be out of luck. The only option
then would be to use some kind of file recovery tool.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3062173

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-08-07 03:52:47 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.