Search code examples
cvs

How to get copy of the older version of the file from CVS


I have CVS used in my company. I would like to stay on the current version for the file, but retrieve copy of the older version into different file name.

I have current revision 1.136, but I need to get revision 1.130.

head: 1.136
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 136;   selected revisions: 136

Solution

  • You could try to

    • retrieve the old version
    • rename it to a different name
    • restore the current version

    It should be possible to do it with something like:

    cvs checkout -D 2010-05-01 directory/file1 #Use  the  most  recent  revision  no later than 2010-05-01
    cp directory/file1 myNewFile.txt
    cvs update -C directory/file1