[NTLUG:Discuss] Off-Topic - CVS Query
Stuart Johnston
saj at thecommune.net
Tue Nov 1 23:22:06 CST 2005
Fred James wrote:
> Stephen Davidson wrote:
>
>> Greetings.
>>
>> Project I am on, looking to read some "metrics" from CVS for Quality
>> Analysis.
>>
>> Does anyone know of a good tool that would get the number of lines of
>> code change between 2 labels in CVS?
>>
>> Thanks,
>> Steve
>>
>>
> Stephen Davidson
> I found this under "CVS(1)" in the man(ual) pages. Does that help?
> Regards
> Fred James
>
> " diff [-kl] [rcsdiff_options] [[-r rev1 | -D date1] [-r rev2 | -D
> date2]] [files...]
If you take the output from the cvs diff and pipe it to:
egrep '^>' | wc -l
you would get the number of lines that were changed or added. However
it wouldn't tell you about lines removed or if a line was changed
multiple times between revisions.
-Stuart
More information about the Discuss
mailing list