Where is the Attic in Subversion (Turtle)?

Oops, I need information from a file that I deleted some time ago. In CVS, I would just go to ATTIC to find it, how to find the file in SVN without returning to the revision where it exists (especially annoying, since I have no idea when I left - a week ago, two weeks ago. ..)

+4
source share
3 answers

Look at the SVN log of the directory in which it was located, find the version in which you deleted it. In the bottom pane, right-click the file and select the option "Save revision to ...".

To help you find which revision you deleted, find the document icon with an X in the lower left corner of the Show Log column of Actions.

+6
source

The "attic" in CVS is more of an implementation detail. The file cannot be completely deleted from the repository, because the file history is in the " ,v " file, so CVS puts it off.

Subversion uses a more sophisticated repository storage mechanism, where files do not need to be put off this way. I don’t think there is an easy way to request the latest version where the file existed, but you should find it quite easily using "svn ls -rrev". In this case, rev can be any of the things that Subversion accepts to indicate a revision - number, date, etc. Just go back to the story until you find it, then go ahead until you find the latest version where it existed.

Update: @AviewAnew has a good understanding of checking the directory log in which the file was located. Since deleting a file is indeed a change in the directory that contains it, it should be easy to find where the file disappeared this way.

+3
source
 svn log --verbose 

will show you what you deleted. Then you can do

 svn copy --revision <last_revision_with_deleted_file> 

to get a working copy of the deleted file. It should not be harder than getting the remote file from CVS.

+2
source

Source: https://habr.com/ru/post/1277406/


All Articles