Can't copy and paste older code in Subclipse?

In Eclipse with the SVN Subclipse plug-in. When I right click on a file and go

Team --> Show History

      

Then I select the version of the file that I want to view. All commands like Select all (Ctril-A), copy (Ctrl-C), and paste (Ctril + V) do not work.

Is this some kind of protection feature to stop people using older versions of the code?

My latest version of the code is badly broken, I want to replace it with the contents of an older version of the file?

How to do it?

thank

+3


source to share


2 answers


Right click on the file and select Replace With → Revision or URL, then select the working version and you are done.



+2


source


In the History window, the option you need in your script is Get Content. This will take the contents of the file at the selected revision and replace the contents of the file in your working copy along with it. The file will then most likely show up as modified locally, and you can edit / commit if you want to update the HEAD revision with those changes.



+1


source







All Articles