You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Eugene Lisitsin <li...@glowbyte.com> on 2004/10/05 11:06:44 UTC
How do you count absolute code changes volume?
Hi,
I need to count how much work (measured in lines of code) had been
done during certain period of time. If I take just two revision at the
beginning and at the end of this period, and compare them, the
measurement will not reflect all kinds of refactoring, etc.
What I need is to measure the absolute volume of changes for each
commit, then aggregate.
Are there any convenient means of doing this?
Thanks,
Eugene Lisitsin
mailto:lisitsin@glowbyte.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How do you count absolute code changes volume?
Posted by David Ripton <dr...@ripton.net>.
On 2004.10.05 15:06:44 +0000, Eugene Lisitsin wrote:
> I need to count how much work (measured in lines of code) had been
> done during certain period of time. If I take just two revision at the
> beginning and at the end of this period, and compare them, the
> measurement will not reflect all kinds of refactoring, etc.
>
> What I need is to measure the absolute volume of changes for each
> commit, then aggregate.
>
> Are there any convenient means of doing this?
I think you need to write a script.
(pseudocode)
for rev in [starting_rev, final_rev) # watch for fencepost error
svn diff -r rev:rev+1 >> results
egrep -c "^[+-][^+-]" results
Though when your "productivity" metric has roughly a 100% margin of error,
worrying about the 2% difference between measuring net and gross seems
rather silly.
"I'm gonna write me a new minivan this afternoon." -- Wally
--
David Ripton dripton@ripton.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org