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

RE: Count lines added by author X

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-05-09 22:30:16 CEST

> From: cifroes [mailto:cifroes@netcabo.pt]
>
> Using that
> information i would like to count all lines made by author X, Y and Z in
> the whole project...
>
> Is there a simple "statistics" aplication that already does
> this or some kind of script?

Well, this seems to work for me:

svn status -v |
    grep -v '^\?' |
    cut -c 41- |
    xargs -n1 svn blame |
    awk '{print $2}' |
    sort |
    uniq -c

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 9 22:39:18 2005

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.