I needed all revisions of a file stored in CVS. In bazaar and other newer VCS this is a non issue since all the revisions (history) can be found in your local checkout/branch.
Anyhow, I needed all revisions of a file, let’s call it Y. This is how I did it.
FILE=Y
for i in $(cvs log $FILE | grep revision | awk ‘ { print $2 } ‘ | grep -v revisions) ; do cvs update -r $i $FILE ; cp $FILE ${FILE}.$i ; done
Again, perhaps not the right way. But it works.
Advertisement