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

Re: A FOSS system like FishEye

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-07-26 02:29:46 CEST

On Jul 26, 2006, at 00:02, Behrang Saeedzadeh wrote:

> Thanks for the reply. Actually I want the tool to let me know how many
> lines-of-code (LOC) each user have commited (per day, per project,
> etc.) but it seems that the aforementioned tools don't have such a
> facility. Do you know a tool with such a feature?

That sounds like a pretty simple post-commit hook to count the lines
committed and write the count to a file for each user, and then a
cron task at the end of the day to read out the tally and email it to
someone and clear the counter.

You'd have to define what you mean by lines of code. If a user adds a
line of code, that may be clear, but what if they remove a line of
code? Does that subtract from the total? If a line is changed, that's
one line added and one line deleted, according to a normal diff. Is
that zero lines of code? I just read about the topic on Wikipedia and
it seems to be a lot more complex than that.


Whatever definition for LOC you have (or come up with), you could
write a tool to parse the output of svn diff, or you could write (or
find) a program you can insert as a diff-cmd program.

However, in addition to the arguments in the above Wikipedia page
made against the practice of counting lines of code, I also feel
compelled to point to this anecdote:


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 26 02:30:55 2006

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