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

Re: Fwd: svn Line Count metrics, counting line changes

From: Mattias Engdegård <mattias_at_virtutech.se>
Date: 2006-04-06 16:49:44 CEST

"Fred Trotter" <fred.trotter@gmail.com> writes:

>I wanted to let everyone know the end result of this little quest. The
>script from ViewVC worked perfectly, and with SVK as well as SVN. That mean=
>s
>that I was able to import projects from SVN and CVS and then use ViewVC to
>generate stats for all of them.

That is good to hear. I needed the +- line counts in order to show them in
a revision log browser, so I calculated them from the output of svn diff.
Removed directories don't show up (issue 2524), so I had to cat them
recursively in order to count the lines that were removed. This takes some
time, but is only run once (as a post-commit script), and saved in a
revision property.

If anyone wants my script, send me a mail. It does not need direct
repository access, in contrast to the ViewVC script (unless I misread it
entirely).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 6 16:50:40 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.