I often find that when management asks for something they typically want the output on a webpage, in a graph, or slide presentation. If you find that's the case you could take a look at the statsvn (http://www.statsvn.org/) project.
In the past I've used this data not to track productivity but to get a feel of %churn in a given codebase. If I'm a week from final compile and half the code is being rewritten, I get nervous :-)
Joe
-----Original Message-----
From: Andy Levy [mailto:andy.levy_at_gmail.com]
Sent: Thursday, July 23, 2009 11:09 AM
To: Parrish, Ken
Cc: users_at_subversion.tigris.org
Subject: Re: Source code statistics ...
On Thu, Jul 23, 2009 at 12:01, Parrish, Ken<KParrish_at_gomez.com> wrote:
> I haveĀ been asked by my management to calculate the total number of lines
> of code which were added or modified between two revisions in our source
> code.
>
>
>
> Is there a way, using Subversion commands, to calculate such statistics?
Not purely with Subversion, you 'll need to script it. There are
several scripts/packages that do this. On a simplistic level, you can
either use the output of svn diff or export both revisions and run wc
-l on each, then compare. But that doesn't account for binary files,
entirely new files, files deleted, etc. And even a minor refactoring
can skew those numbers heavily.
But it's a losing proposition. Tracking development by statistics like
this is a sign that management doesn't understand that building
software is not like building a skyscraper. I had a PM (Princeton or
Harvard MBA, no less) once who wanted me to estimate how many LOC my
application would ultimately be, and then gauged my progress by asking
for a LOC count weekly.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2374879
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
This message is confidential to Prodea Systems, Inc unless otherwise indicated
or apparent from its nature. This message is directed to the intended recipient
only, who may be readily determined by the sender of this message and its
contents. If the reader of this message is not the intended recipient, or an
employee or agent responsible for delivering this message to the intended
recipient:(a)any dissemination or copying of this message is strictly
prohibited; and(b)immediately notify the sender by return message and destroy
any copies of this message in any form(electronic, paper or otherwise) that you
have.The delivery of this message and its information is neither intended to be
nor constitutes a disclosure or waiver of any trade secrets, intellectual
property, attorney work product, or attorney-client communications. The
authority of the individual sending this message to legally bind Prodea Systems
is neither apparent nor implied,and must be independently verified.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2374887
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-23 18:25:43 CEST