tags:

views:

94

answers:

2

Hi,

To checkout I use the following command

CVSROOT="/home/projects/stuff/" cvs co mywork

with the mywork directory I have text files as well as pictures, i.e., looks something like this

- paper.tex
- pic1.jpg
- pic2.jpg
etc.

In particular, I am interested in checking out all the version of paper.tex over time. Is there a way how I can check all revisions of this file out at once? Or which command can I use to see when revision have been made to this particular file?

many thanks for your help, Andrew

A: 

With TortoiseSVN, just right-click the file log and select TortoiseSVN/Show Log. That will show only the revisions where the file was modified. Then you can right-click on each revision and select Save revision to...

RedFilter
thanks, but ideally I am looking for command line for CVS. Thanks!
Andrew
@Andrew: Then why did you tag it `tortoisesvn` and `svn` and put `SVN` in the question title?
RedFilter
sorry, my mistake
Andrew
A: 

To see all revision you can use the cvs log command

cd mywork
cvs log paper.tex

To get a list of all commands use:

cvs --help-commands

And to get help on a specific command use -H, eg. for the log command:

cvs -H log

Assuming you have a bash or some other powerful shell, you can check out all revision of one file over time like this:

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