[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: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2006-04-06 05:04:39 CEST

[Forwarding to dev@viewvc.tigris.org so that group is aware of your work.]

Fred Trotter wrote:
>
> 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
> means that I was able to import projects from SVN and CVS and then use
> ViewVC to generate stats for all of them.
>
> I wrote several PHP scripts that generate graphs and statistics from the
> ViewVC data. I will release these under the GPL for whomever would like
> them, but ultimately I think that it would be more lucid if they were
> recoded in python and merged with the ViewVC project. Still you can
> download the code and read the how-to by going to...
>
> http://ehr.gplmedicine.org
>
> and looking under "review tools"...
>
> Thanks for the help
>
>
> The svndbadmin tool that comes with ViewVC (and is used for populating a
> Bonsai-like database of commit metadata) performs calculations of
> this sort
> by running 'diff' on each modified file in a revision (against its prior
> state), grepping for the line-count headers in that diff output, and
> doing
> arithmetic stuffs with it. This tool is written to be run as a
> post-commit
> tool, at which time it populates the Bonsai-ish database with the
> info that
> one recent commit.
>
> Here's a link to the ViewVC view of that tool's source code:
> http://viewvc.tigris.org/source/browse/viewvc/trunk/bin/svndbadmin?rev=1288&view=markup
> <http://viewvc.tigris.org/source/browse/viewvc/trunk/bin/svndbadmin?rev=1288&view=markup>
>
> --
> C. Michael Pilato <cmpilato@collab.net <mailto:cmpilato@collab.net>>
> CollabNet <> www.collab.net <http://www.collab.net> <>
> Distributed Development On Demand
>
>
>
>
>
> --
> Fred Trotter
> SynSeer, Consultant
> http://www.fredtrotter.com
> http://www.synseer.com

-- 
C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 6 05:05:20 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.