google
yahoo
bing

cvs revisions – not the right way I think, but it works

Friday, October 17th, 2008 | Free Software, GNU, Software, geek

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.

No comments yet.

Leave a comment

Me elsewhere ..


Fatal error: Call to undefined method WP_Error::__destruct() in /www/hesa/wordpress/wp-includes/default-widgets.php on line 735