testway

统计svn代码提交,使用工具

statsvn.jar

 下载地址:http://sourceforge.net/projects/statsvn/

rem  声明一个时间变量 作为文件名
if "%time:~0,2%" lss "10" (set hh=0%time:~1,1%) else (set hh=%time:~0,2%)
set filePath=E:\mysqlbake\statsvn\%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%_%hh%%TIME:~3,2%%TIME:~6,2%
echo %filePath%
rem 新建一个文件夹
md %filePath%
rem  复制文件
copy statsvn.jar  %filePath%
cd %filePath%
rem  处理 autotest 为项目文件代码文件夹
svn co http://svn.xxx.com/svn/branches/autotest
svn log -v --xml %filePath%\autotest  > %filePath%\autotest\svn.log
java -jar statsvn.jar autotest_fchtgl
java -jar statsvn.jar %filePath%\autotest\svn.log %filePath%\autotest_fchtgl -include **/*.java:**/*.jsp:**/*.js:**/*.css:**/*.xml -exclude **/proto/internet/*.java:**/js/jquery-1.6.2.min.js
rem 删除svn下载的代码
rd /s /q %filePath%\autotest

会生产统计文件   打开index.html 可以查阅更多

 

分类:

技术点:

相关文章:

  • 2021-06-13
  • 2021-11-21
  • 2021-12-09
  • 2021-08-13
  • 2022-12-23
  • 2021-08-13
  • 2022-01-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-29
  • 2022-12-23
  • 2022-01-05
  • 2021-11-29
相关资源
相似解决方案