Friday, July 9, 2010

Eclipse plugin: StatSVN

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
  • Lines of code for each developer
  • Activity by Clock time
  • Authors Activity
  • Author activity per Module
  • Author Most Recent Commits with links to ViewVc
  • Stats per directory
  • File count
  • Average file size
  • Largest files
  • Files with most revisions
  • Directory Sizes
  • Repository Tags Number of LOC per version.
  • Repository tree with file count and lines of code
  • LOC and Churn the evolution of LOC and the amount of change per day
  • Repo Map the dynamic hierarchical view of your repo for the last 30 days

StatSVN is open source software, released under the terms of the LGPL, based on StatCVS. StatSVN uses JFreeChart to generate charts.

How to use StatSVN:

  1. Download the StatSVN. Download link.
  2. Extract the zip file in to separate folder and name it as a StatSVN. [The name depends on once wish.]
  3. Checkout the latest project from svn for which you want to generate the reports.  Ex test is the project name.
  4. Generate the log file for the svn. svn log -v --xml > logfile.log
  5. You can generate the logfile for specific period using this command. svn log -v --xml -r {2010-03-01}:{2010-03-31} > log.xml
  6. To check for the log file open the folder where you have created it.
  7. Now run the StatSVN. java -jar /path/to/statsvn.jar /path/to/module/logfile.log /path/to/module [ Ex: java -jar C:/StatSVN/statsvn.jar C:\workspace\Test\log.xml F:\workspace\Test]
  8. You can redirect the output by creating a specific folder. --output -dir If the directory is not there new directory will be created. [Ex: java -jar C:/StatSVN/statsvn.jar C:\workspace\Test\log.xml F:\workspace\Test -output-dir Reports]
  9. The report is generated in the specific folder.

No comments:

Post a Comment