From AIRWiki
Jump to: navigation, search

StatSVN retrieves information from a Subversion repository and generates various tables and charts describing the project development, e.g. timeline for the lines of code, contribution of each developer etc.

It is indeed an interesting tool to evaluate roughly the wrinting performance of a PHD on his articles or to understand how much a student is working on a project!!  :D

How to use

1. Download the last version of StatSVN here. It is a jar and you car run it from command line. You can also save it in the SVN directory for which you want to compute statistics. For instance suppose to use the root of our repository (whereever you have placed it in your computer) Airpaper.

2. Create the log file for the SVN
airpaper$ svn log -v --xml > logfile.log
3. Create the outpur directoy
 airpaper$ mkdir stats
4. Run StatSVN in this way
airpaper$ java -jar statsvn.jar -username YOUR_USER -password YOUR_PASSWORD -output-dir stats logfile.log .
where you can chose your username (YOUR_USER), your svn password (YOUR_PASSWORD), the output directory (stats in this case), the log file previously created (logfile.log) and the module path of the svn structure ('.' in this case which means airpaper)

NOTE that if the repository is composed by many files the process will take a long time to compute the statistics.