How to switch to an old revision of the entire project?

98 Views Asked by At

For what I know, CVS is not like git and svn that you can switch back to an older version of an entire repo code.

The best I tried is I checkout a date (some days ago), using Eclipse. But it checked out a very old version. I'm sure to have inserted the correct date.

1

There are 1 best solutions below

2
Yaniv Shaked On

You can return to an old version of the entire repo code by running the following command from the root directory of your repo:

cvs update -r <TAG name>

where TAG name is the name of a TAG which was previously created on the entire repo using:

cvs tag -F <TAG name>

In cvs, a TAG is a list of files and their cvs revision. So using the tag command creates that list, and using the update command (with -r switch) is asking to return to the same file revisions which existed when tag was created.

One more important note, to return to the latest revision (head) of all files in you repo, use:

cvs update -A