What I need is to check content of all last day CVS committed files for occurrence of certain expressions in code and report it with its committer.
In order to do that, I have to get content of the files, but I am able to get only list of committed files with other obvious attributes. The command I used for it is
cvs history -a -c -D <today's date> > cvs_history.txt
Is there some way, I could modify the command, so I can get what I need? Or will I have to parse the history output file and checkout all the files mentioned, so I can search them through? What is most efficient way to do it?
NB. I'm writing it in Ant script (if that is going to make things somehow easier).
Thank you, Jakub
Edit:
I need to do it every night for all commits in the company (list of users constantly changing).
After some research of CVS commands, I'll probably have to take the history
list and get rdiff
for each file from list (interested only in code added). And to call rdiff
, I must know revisions: the last revision is from history
and it's previous from rlog
- it's a bit more difficult, because I need to take into account also branch revisions. All this will have to be glued together with Perl script using regex and that will finally combine it into the output I need.
I think that'll do it, but it can take long time for large number of commits. Could it be easier?