公司使用git和svn,都的做统计,总结svn统计代码的方法:
1 下载statsvn
  http://www.statsvn/downloads.html
2 使用statsvn
  下载代码

  svn co http://xxxx.xxxxx.xxxxx/xxxxx
  输出svn日志
  svn log --xml -v > svn.log
  生成报告
  java -jar statsvn.jar svn.log /workspace -exclude 'xxx/**'  -include **/*.cpp:**/*.h  -output-dir '/report'
   /workspace                      最新版本所在的目录
   -include **/*.cpp:**/*.h        默认情况下statsvn统计指定目录下的所有文件,这个参数可以设置指定统计具体文件
   -exclude xxx/**                 表示不统计的内容
   -output-dir '/report'           报告生成的地址




更多推荐

svn代码统计生成详细html报告