Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

X1Lightning

macrumors 6502
Original poster
Feb 19, 2007
413
0
i'm trying to find a way to get all the comments committed between tags in a CVS repository. i'm trying to get this figured out how to do this from the command line so i can then do it in ant.

I have dug thru everything i can find on the web, but nothing seems to return the comments for a tag. does anyone have any ideas?
 
CVS isn't too great for this sort of thing in my experience, and this exercise may be the end of you.

Code:
cvs log -l -d "> $numhours hours ago" -N -S 2>&1 | grep -v -e '^RCS' -e '^branch:' -e 'locks:' -e '^access list:' -e '[tg ][thm]rev' -e '^keyword substitution:' -e 'description:' -e '^?' -e '^total revisions:' -e '^head:' -e 'ÿ'

That is the command in a shell script i use for a similar purpose. $numhours is calculated from passed in arguments. I think you could try to figure out the date/time the tags were made, then use that as the arguments to -d? I'm not sure if there is a more efficient way to do this, but this was enough to push me to move the next version into SVN.

Good luck.

-Lee
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.