Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get deleted file from SVN Repository

Tags:

eclipse

svn

I deleted a file from my Eclipse work space but that file is in SVN repository. Could any one help me to get my deleted file from SVN without using the command line?

like image 968
kavie Avatar asked Feb 18 '14 06:02

kavie


People also ask

How remove deleted file from svn?

Deleting files and foldersUse TortoiseSVN → Delete to remove files or folders from Subversion. When you TortoiseSVN → Delete a file or folder, it is removed from your working copy immediately as well as being marked for deletion in the repository on next commit.

How do you find changed files in svn?

svn log then defaults to fetching the history of the directory at its current revision, and thus you don't see the newly committed changes. The solution here is to either update your working copy or explicitly provide a revision number to svn log by using the --revision ( -r ) option.

How do I undo changes in svn?

Right click on the selected revision(s), then select Context Menu → Revert changes from this revision. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context Menu → Revert to this revision.


1 Answers

There's a simpliest way to recover the file with Eclipse+SVN only.

Go to SVN Repositories view, find a folder your file was located, make a right click and choose Show History. You will see the list of commits to THIS FOLDER in the History view. Please make sure it's switched to Remote Revisions. From the list of commits find a commit that deleted the file. In the pane below there's a list of files involved with this commit - you can find deleted files with minus sign. Double click will open this file in editor...

like image 65
Bryn Avatar answered Oct 06 '22 04:10

Bryn