http://www.cnblogs.com/allenblogs/archive/2010/12/31/1923121.html
It takes three steps to create reports for a Subversion module:
- Check out a copy of the module from Subversion
- Create a log file for the module
- Run StatSVN
Checking out a module from Subversion
You can skip this step if you have already checked out a working copy, whether with the command line utility as shown here or a graphical interface, such asTortoiseSVN, but make sure to run an "svn update" on your working copy or you may not see all your log entries (seethis section of the SVN bookfor more information). Typically, the command looks like this (assuming modulename to be the name of the module):
svn co svn://server/repo/trunk/modulename
Creating an SVN log file
Change into the directory where you have checked out the module, and use the svn log command to create a log file.
cd checkout_dir
svn log -v --xml > logfile.log
Donotforget the-voption otherwise it will not work.
Running StatSVN
StatSVN is run using the command java -jar statsvn.jar. It takes a bare minimum of two command line parameters:
java -jar statsvn.jar <logfile> <checked-out-module>
For example:
java -jar /path/to/statsvn.jar /path/to/module/logfile.log /path/to/module
This command creates the reports in the current user directory. You can now point your browser to the file index.html, which is the table of contents of the report.
本文介绍如何使用Subversion创建模块报告。主要包括三个步骤:检出模块、创建日志文件及运行StatSVN。通过命令行工具或图形界面完成模块检出,并确保更新到最新状态。接着,在模块目录下生成XML格式的日志文件。最后,利用StatSVN工具解析日志文件,生成HTML报告。
2798

被折叠的 条评论
为什么被折叠?



