Java – How to properly roll back to an older version in CVS HEAD using Eclipse

cvseclipsejava

I have a CVS repository in which I have a set of Eclipse Java projects where I need to roll HEAD back to the state it was at a specific time yesterday essentially abandoning all commits happened since said time.

I've tried different things, including using "Replace with another branch or version" which gives the proper sources, but where it appears that CVS now thinks I'm actually working "back in time" instead of in HEAD but with other sources which result in changed files showing up in Team Synchronize etc. Also commits tells me I'm working on a sticky tag and fails.

So, what is the proper way to tell Eclipse 3.5.1 that I need to rollback HEAD to yesterday?

Best Answer

I usually use the following for individual files:

Replace With -> History

Which can be found under the right click menu

Pick the version you want (it also includes eclipse locally saved versions)

Then commit to make it the HEAD

Related Topic