tags:

views:

38

answers:

2

Hi,

I have set the correct CVS Root, within this root I have a repository which contains a number of files. In particular, I am interested in the revisions of one of the files, lets call it test.tex. Now I would like to get ALL different versions of this file, from the repository. Is there somehow a command that I could use to do that?

Or do I need to extract them one after the other?

Many thanks!

A: 

I do not know of a cvs command to get all revisions of a file.

It is simple to create a script to extract all revs, using Perl for example. If you need to get fancy, you might be able to leverage what others have done on CPAN

toolic
A: 

There is no cvs command to check out all revisions of one file. But with bash (or some other powerful shell) it is very easy to check them out one after the other:

FN="test.tex" && for REV in `cvs log $FN | grep "^revision " | cut -c10-`; do cvs co -p -r $REV $FN > "$FN-rev$REV"; done
Ralph