[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: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Wed, 7 Aug 2013 09:02:13 +0100

On 7 August 2013 02:51, BladeOfLight16 <bladeoflight16_at_gmail.com> wrote:
> 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.
>
> Bring up repo browser and navigate to the SVN directory where they were
> checked in.
> 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.
> 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.

Alternatively if the file is modified:

* move the file to a different location
* svn update to get back the unmodified version
* unversion and add to ignore list
* commit
* move the modified file back again

Simon

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-08-07 10:02:45 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.