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

HOWTO gather usage statistics from Subversion repository?

From: Garry Cronin <garry.cronin_at_gmail.com>
Date: 2006-04-20 15:35:24 CEST

I'm a newbie to Subversion so perhaps there are cleaner ways to accomplish
what I'm asking otherthan writing custom scripts but here goes...

Our development team (i.e. approx. 40 developers) have recently switched
over from using CVS to Subversion - because we are working on multiple
projects simultaneously we have set up the repository in the following
structure:

project1
    trunk
    branches
    tags
 project2
    trunk
    branches
    tags
 etc.

Now I'm interested in getting the following types of statistics on a per
project basis:

How many project team members have committed to the repository in the last x
number of days?
How many commits has each team member made in the last x number of days?
On average, what is the average number of commits made each week.

Really, this is just for my own use so that I can investigate why certain
individuals may not be using the repository. Following on from this, I have
written up a Branching & Tagging Policy document that our developers should
consistently follow. One of the rules is to avoid committing changes
directly to trunk. Instead all changes should be made on provate branches
and merged into trunk after testing & code review. How can I write a script
to determine whether such a policy is being followed? Is there a simple way
of determining whether a commit was the result of a merge as opposed to a
direct commit on trunk?

Another group within our organisation is maintaining the repository so I do
not have local access to the repository, so ideally I'd like a way to gather
these statistics without having to require local access to the repository.
If local access to the repository is required then I can always get the
group maintaining the repository to run these scripts on my behalf and send
me the results.

Thanks in advance
- Garry
Received on Thu Apr 20 22:09:05 2006

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.