How to recover an accidentally deleted folder in a svn repository

19,057

The easiest way is probably to svn copy the tree you want, from the revision where it last existed:

svn copy src@rev dest

See the Subversion Book for details.

Share:
19,057
Corey Floyd
Author by

Corey Floyd

An iPhone developer, now in Philly!

Updated on June 17, 2022

Comments

  • Corey Floyd
    Corey Floyd almost 2 years

    I know how to revert to a specific revision of a folder using these instructions:

    http://aralbalkan.com/1381

    However, I deleted the entire folder and want to get that folder back without reverting the rest of the repository.

    I tried recreating the folder and then merging the changes back, but svn knows my trick and realizes it is a new folder.

    How should I do this?

  • Corey Floyd
    Corey Floyd over 14 years
    Does that copy the revision history as well? I mean can I browse the history of files in the copied folder?