Upload
guo-albert
View
1.646
Download
4
Tags:
Embed Size (px)
Citation preview
Monitoring Development Statistics with StatSVN
Albert Guo
What is 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
– * Files with most revisions
– * Directory Sizes
– * Repository Tags Number of LOC per version.
– * 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
2
Prerequisite
http://subversion.tigris.org/
http://tortoisesvn.tigris.org/
http://www.statsvn.org/
3
Development Statistics Report Generation Process
type 'svn log --xml -v > svn.log'
java -jar statsvn.jar "< working-Dir>\svn.log" "< working-Dir>“ -output-dir "<working-Dir>\svn-report" -title "eMemory Project“
4
Copy statsvn.jar to working directory
5
Generate SVN log
svn log --xml -v > svn.log
6
Execute command
• You can use java -jar statsvn.jar to get all parameters
• We will use the four parameters:
• Required parameters:
– <logfile>: path to the svn logfile of the module
– <directory>: path to the directory of the checked out module
• Optional parameters:
– output-dir <dir>: directory where HTML suite will be saved
– title <title>: Project title to be used in reports
java -jar statsvn.jar "D:\work\Client\eMemory\svn.log" "D:\work\Client\eMemory “ -output-dir "D:\work\Client\eMemory\svn-report" -title "eMemory Project“
7
Check Report
8
Check Report – cont.
9
Check Report – cont.
10
Check Report – cont.
11
Check Report – cont.
12