Question

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

Team --> Show History

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

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

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

How do I do that?

Thanks

Était-ce utile?

La solution

Right click on the file and choose 'Replace with->Revision or URL' then choose a working version and you're done.

Autres conseils

From the History view, the option you would want in your scenario is Get Contents. This will take the contents of the file in the selected revision and replace the contents of the file in your working copy with it. The file will then likely show as Modified locally and you could edit/commit as desired to update the HEAD revision with those changes.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top