StatSVN使用
对于StatSVN是一个对SVN目录的统计工具,它用于从svn日志文件中生成HTML报告
1:从官网下载 http://sourceforge.net/projects/statsvn/
svnstat.jar 到 c:\statsvn目录
2:从svn服务器down下最新代码到本地c:\myproject目录
3:cd到 c:\myproject, 在cmd下键入 svn log --xml -v > svn.log ,以便在c:\myproject目录下生成svn.log文件, 如果中间命令出错:svn: E220001: 条目不可读错误时, 则将SVN服务器的 svnserve.conf 文件设置为 anon-access = none, 重启SVN服务, 然后重新执行刚才的命令即可
4:cd 到 c:\statsvn目录,执行 java -jar statsvn.jar c:\myproject\svn.log c:\myproject 命令,稍等一会
5:打开c:\statsvn\index.html 文件以便查看结果
6:执行 java -jar statsvn.jar 命令查看以不同方式统计结果
---------------------------------------------------------------------------------------------------------
官方readme:
StatSVN README
==============
StatSVN is a statistics tool for SVN repositories. It generates
HTML reports from SVN log files.
The StatSVN Manual
The StatSVN manual is located here: http://svn.statsvn.org/statsvnwiki/index.php/UserManual
Quick Start
* Download the latest release from http://sourceforge.net/projects/statsvn/
* Expand the zip file into some directory, e.g c:\statsvn
* Check out a working copy of the desired SVN module into
some directory, e.g. c:\myproject.
* Change into that directory and type
'svn log --xml -v > svn.log'
* Change back to the c:\statsvn directory
* type 'java -jar statsvn.jar c:\myproject\svn.log c:\myproject'
* Open c:\statsvn\index.html in your web browser
You can tweak the output of StatSVN in various ways. Run
'java -jar statsvn.jar' for an overview of the command line
parameters, and check the manual for full information.
---------------------------------------------------------------------------------------------------------
因官方乱码,附件为没有乱码的版本,在执行命令时加上参数-charset gb2312,具体如下:
java -jar statsvn.jar -charset gb2312 c:\myproject\svn.log c:\myproject