Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to revert previous updates from CVS in eclipse

Our Project is using CVS and its is integrated from eclipse and so we use Team Synchronizing to get the latest code from CVS but is there a way to revert the previous commit or update from repositry which we have done ?

I come from git background and so I am having hard time to find out this functionality from eclipse/cvs, any suggestion would be highly apprecaited.

like image 270
Rachel Avatar asked Jan 20 '23 23:01

Rachel


2 Answers

It depends what you mean by "revert".
The git revert actually add a new commit canceling the changes introduced by the previous one.

With Eclipse, that would be (file by file): "Replace With -> History"
(see "How to properly roll back to an older version in CVS HEAD using Eclipse?")

alt text

And then make a new commit.
In other word, there don't seem to be any simple way to do this (when many files are impacted)...

like image 144
VonC Avatar answered Jan 23 '23 13:01

VonC


Right click on the file -> Team -> Revert to Base. This will overwrite any local changes and revert to the most up-to-date version of the file in CVS.

Any this what you're after? (I have to admit that I find the question somewhat unclear)

like image 32
NPE Avatar answered Jan 23 '23 12:01

NPE