12
Monitoring Development Statistics with StatSVN Albert Guo [email protected]

Monitoring Development Statistics with StatSVN

Embed Size (px)

Citation preview

Page 1: Monitoring Development Statistics with StatSVN

Monitoring Development Statistics with StatSVN

Albert Guo

[email protected]

Page 2: Monitoring Development Statistics with StatSVN

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

Page 3: Monitoring Development Statistics with StatSVN

Prerequisite

http://subversion.tigris.org/

http://tortoisesvn.tigris.org/

http://www.statsvn.org/

3

Page 4: Monitoring Development Statistics with StatSVN

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

Page 5: Monitoring Development Statistics with StatSVN

Copy statsvn.jar to working directory

5

Page 6: Monitoring Development Statistics with StatSVN

Generate SVN log

svn log --xml -v > svn.log

6

Page 7: Monitoring Development Statistics with StatSVN

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

Page 8: Monitoring Development Statistics with StatSVN

Check Report

8

Page 9: Monitoring Development Statistics with StatSVN

Check Report – cont.

9

Page 10: Monitoring Development Statistics with StatSVN

Check Report – cont.

10

Page 11: Monitoring Development Statistics with StatSVN

Check Report – cont.

11

Page 12: Monitoring Development Statistics with StatSVN

Check Report – cont.

12