Difference between revisions of "StatSVN"

From AIRWiki
Jump to: navigation, search
(How to use)
m (How to use)
Line 4: Line 4:
  
 
== How to use ==
 
== How to use ==
1. Download the last version of StatSVN [http://www.statsvn.org/downloads.html 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 whant to compute statistics. For instance suppose to use the root of our repository (whereever you have placed it in your computer) [[Airpaper]].  
+
1. Download the last version of StatSVN [http://www.statsvn.org/downloads.html 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]].  
 
<pre> airpaper$</pre>
 
<pre> airpaper$</pre>
  

Revision as of 17:27, 6 February 2010

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.

 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)