I need to get the content of folder deleted from our repository long time ago
svn log
doesn't seem to help:
$ svn log deleted_folder
svn: 'deleted_folder' is not under version control
svn co
also doesn't help
$ svn co URL/deleted_folder
How can I find out the last revision of the deleted folder?
EDIT: an option would be with brute force to check backwards for every revision but as there are more than 10K of them the option would be just for emergency. And I really feel that there definitely must be a better way.
In the Repository Browser, click the button labeled HEAD (at the top-right corner) to show to a revision there your folder still exists, then right-click that folder and select "Copy to..." and enter the path there you want the folder to be re-created (probably the same path that is already in the text box).
If you right-drag the folder and use "SVN move versioned item(s) here", then you keep the history. Even the history of the files within the folder.
Examples. You can see the log messages for all the paths that changed in your working copy by running svn log from the top: $ svn log ------------------------------------------------------------------------ r20 | harry | 2003-01-17 22:56:19 -0600 (Fri, 17 Jan 2003) | 1 line Tweak.
Deleting a File or Directory svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory… This schedules the files and directories for removal from the Subversion repository.
You can find the revision that the directory was deleted in by going to the parent directory of the deleted directory and using the following command:
svn log -v . > somefile
then search somefile in an editor for the revision record contain the delete for the directory name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With