May
21
2010

Finding All Changes In CVS By Date

Friday, May 21, 2010 - 12:19:50 pm
(Posted Under: Geek)
Yesterday I wrote a cool and helpful script that queries a CVS repository, and shows the changes in modules over time - per day. Funnily enough I wrote some C code yesterday to generate a list of sequential dates to work with, and looking into it further, discovered that it's not really required, as it can be achieved in a Linux shell with 'date': date=`date --date="$date next day" "+%Y-%m-%d"`

Go figure, Linux being awesome again. [smile]

Initially I just had it listing changes, and then added in displaying diffs, and logs for the changes over a period. Sweet.

Unfortunately I've discovered today that 'cvs rdiff' can't work with dates on a specific branch, which is quite frustrating, given how useful the script is (until you get to wanting to look at code on a branch). I love CVS, but the inability to compare revisions by date on a certain branch instead of the trunk is pretty brain dead if you ask me.

With that said, I've jimmied up a way to do it with 'cvs diff' instead, but still, I'm disappointed that I can't use 'cvs rdiff'.

Post Comment



All fields are required. Email addresses will not be published, but are required for anti-spam purposas.

Switch Styles

About Style Switching.

!Weblog Index

Apr May 2010 Jun
SU MO TU WE TH FR SA
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

Categories

RSS FeedRSS Feed