目录
SVN命令统计项目代码行数,开发人数,提交占比.......
准备
工具:satasvn.jar
下载地址:StatSVN download | SourceForge.net
注意这里下载的文件是statsvn-0.7.0版本的
如遇到如下问题
Subversion binary is incorrect version. Found: 1.14.1, required: 1.3.0
请使用0.7.1版本,修复
https://github.com/AusHick/StatSVN/releases/tag/v0.7.1
https://gitee.com/tianmuyese/aushick-statsvn/releases/tag/v0.7.1
前提条件:
1.java环境
2.svn安装时勾选了“命令行功能”并安装。
开始
下载satasvn后,解压
网上很多小哥都是写命令行操作,咱们今天使用官方方法
打开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.
- http://sourceforge.net/projects/statsvn/,下载文件statsvn
- 解压出statsvn.jar
- 导出你的svn项目到一个目录myproject
- 在你的项目文件夹myproject下打开命令行,执行命令svn log --xml -v > svn.log
- 重新进入statsvn文件夹
- 打开命令行,执行java -jar statsvn.jar c:\myproject\svn.log c:\myproject
- 打开你的statsvn下index.html就可以看到你的代码统计量了
中文版操作方法参考