Difference between revisions of "StatSVN"

From AIRWiki
Jump to: navigation, search
m (How to use)
m (How to use)
 
(2 intermediate revisions by the same user not shown)
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 an you car run it from command line. You can also save it in the SVN directory for which you whant to compute statistics.
+
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>
 +
 
 +
2. Create the log file for the SVN <pre>airpaper$ svn log -v --xml > logfile.log</pre>
 +
 
 +
3. Create the outpur directoy <pre> airpaper$ mkdir stats</pre>
 +
 
 +
4. Run StatSVN in this way <pre>airpaper$ java -jar statsvn.jar -username YOUR_USER -password YOUR_PASSWORD -output-dir stats logfile.log .</pre> 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.

Latest revision as of 17:29, 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)


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