[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How do you count absolute code changes volume?

From: David Ripton <dripton_at_ripton.net>
Date: 2004-10-06 23:11:43 CEST

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
Received on Wed Oct 6 23:12:11 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.