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].
Received on 2009-07-23 18:10:01 CEST