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