You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jean-Louis Berliet <jl...@free.fr> on 2004/01/26 19:27:27 UTC

Compute some metrics on subversion repositories

What is the best way to compute some metrics on a subversion repository
?

I want to determine these data :
- number of octets between two dates for each user (ascii or binary
files)
optional :
- number of lines between two dates (ascii files)
 
Could i use the "svnadmin dump REPOS_PATH --incremental" xml file ? Is
it reliable ?
Could i use the python APIs to compute the datas ? How ?
 
Thanks a lot.
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Compute some metrics on subversion repositories

Posted by kf...@collab.net.
Hi, Jean-Louis.  I don't have answers to your questions unfortunately,
but I've rethreaded your message to users@subversion.tigris.org, a
better place to ask.  (dev@subversion.tigris.org is for development
discussion.)

Thanks,
-Karl

Jean-Louis Berliet <jl...@free.fr> writes:
> What is the best way to compute some metrics on a subversion repository
> ?
> 
> I want to determine these data :
> - number of octets between two dates for each user (ascii or binary
> files)
> optional :
> - number of lines between two dates (ascii files)
>  
> Could i use the "svnadmin dump REPOS_PATH --incremental" xml file ? Is
> it reliable ?
> Could i use the python APIs to compute the datas ? How ?
>  
> Thanks a lot.
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Compute some metrics on subversion repositories

Posted by Edmund Horner <ch...@chrysophylax.cjb.net>.
Jean-Louis Berliet wrote:

> What is the best way to compute some metrics on a subversion repository
> ?

Yeah, I've been working on a program that generates a report about a
repository, using a verbose XML log file.

> I want to determine these data :
> - number of octets between two dates for each user (ascii or binary
> files)
> optional :
> - number of lines between two dates (ascii files)
>  
> Could i use the "svnadmin dump REPOS_PATH --incremental" xml file ? Is
> it reliable ?
> Could i use the python APIs to compute the datas ? How ?
>  
> Thanks a lot.

 From my experience, the output of "svn log REPOS --xml -v" is reliable
for just about everything, except properties and file sizes.  Though it
sounds like you need the file content.

You can use the dump file, but it's not XML!  If it's a complete
dumpfile (from rev 0 onwards) then you can get as much data as you want
from it.

I have done some ad-hoc dump file parsing, but the preferred method is
to use libsvn_repos, just as svnadmin does.  You set up hooks to process
each path in the file.  Though, since you're interested in file changes,
you'll need to do diff'ing or something between revisions.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org