Skip to content

tzws/gen-Report-from-svn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

gen-Report-from-svn

generate weekly report from svn submit Usage:

command withou any parameter, will show usage

$ processsvn
usage:
/-path-to-/processsvn week
/-path-to-/processsvn today
/-path-to-/processsvn week blame
/-path-to-/processsvn today blame
/-path-to-/processsvn today username
/-path-to-/processsvn week username
/-path-to-/processsvn today username blame
/-path-to-/processsvn week username blame

command with today as parameter

$ processsvn today

user1: 本日(2017-05-27)开发了:
2017-05-27:
        r1306: xxxxxxxxxxxxxxxxxxxxxxxx
        r1303: xxxxxxxxxxxxxxxxxxxxxxxxx
        r1302: xxxxxxxxxxxxxxxxxxxxxxxxx

command with week as parameter

user1 本周(2017-05-22 - 2017-05-28)开发了:
2017-05-27:
	r1309: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1308: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1307: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1305: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1304: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1301: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2017-05-26:
	r1299: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1298: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1294: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1290: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1287: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1275: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1272: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	r1271: xx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xxxxxxxxxxxxxxxxxxx
	r1173: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

command with today or week as first parameter, and userName as second parameter, will output the work done by this user only, for example,

$ processsvn today user1user1
user1: 本日(2017-05-27)开发了:
2017-05-27:
        r1306: xxxxxxxxxxxxxxxxxxxxxxx
        r1303: xxxxxxxxxxxxxxxxxxxxxxx
        r1302: xxxxxxxxxxxxxxxxxxxxxxx

command with blame as parameter, will calculate the lines of codes which user has developed

 $ processsvn today user1 blame
Skipping binary file (use --force to treat as text): 'Application/README.md'
Skipping binary file (use --force to treat as text): 'Public/README.md'
user1: 本日(2017-05-27)开发了:
2017-05-27:
        r1306: xxxxxxxxxxxxxxxxxxx
        r1303: xxxxxxxxxxxxxxxxxxxxxxx
        r1302: xxxxxxxxxxxxxxxxxxxx
截至本日(2017-05-27)共开发了 13094 行代码。

there's some config

  1. protected $skipExt = ['png', 'jpg', 'doc', 'docx', 'pdf', 'mp4', 'gif', 'swf' ];
  • this control's file with extensions in the array will be ignored
  1. protected $skipDirs = ['.', '..', 'Runtime', '.svn', '.git', 'images', 'ThinkPHP', 'lib'];
  • this control's the directory will be ignored.
  1. protected $workingDirs = ['Application', 'Public'];
  • this control's the directory will be searched
  1. protected $lang = 'zh';
  • $lang can either be 'zh' which means it will output Chinese, or 'en' which means it will output English

About

generate weekly report from svn submit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages