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

Re: Source code statistics ...

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 23 Jul 2009 17:17:39 +0100

On Thu, Jul 23, 2009 at 12:01:54PM -0400, Parrish, Ken 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 with Subversion itself.

On Linux/UNIX, install the diffstat program from diffutils.
Then you can do something like this:

$ svn diff -c36720 http://svn.collab.net/repos/svn | diffstat
 liveprops.c | 2 +-
 repos.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Stefan
Received on 2009-07-23 18:18:33 CEST

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.