In CVS, how can I find all the revisions of a file on a certain branch

87 views Asked by At

My source code is versioned with CVS (in particular CVSNT).

Given the full path of a file and the name of a branch, how can I get all the revisions (just the numbers like 1.341.2.1) of the file on the branch?

1

There are 1 answers

0
William Pursell On

If you are looking for all the revisions of file bar in module foo on branch 1.341, probably the easiest thing is:

grep ^1.341 $CVSROOT/foo/bar,v

or you could always do:

cvs log bar | grep '^revision 1.341