0.1.5 • Published 9 years ago

svn-log-stat v0.1.5

Weekly downloads
25
License
-
Repository
-
Last release
9 years ago

SVN Log Statistics Collector (svn-log-stat)

Created for those who need some specific stats on SVN repo. For instance, ratio of backend files to frontend files. Truly, ratio is the only task for now.

Install

npm install svn-log-stat -g

Usage

First, you need to run svn log in your repository:

svn log --xml -v > svn.log

It may happen that svn.log file has the BOM, in that case you have to remove it.

Then, create an svn-log-stat.json file:

{
	"tasks": [
		{
			"name": "ratio",
			"props": {
				"patterns": {
					"back": [ "cs", "xml", "config" ],
					"front": [ "js", "css" ]
				}
			}
		}
	]
}

The name property is a name of built-in task so do not change it!

Finally, you need to run the following code:

svn-log-stat

Or (all keys are optional):

svn-log-stat -log svn.log -conf svn-log-stat.json -out output.txt

It will provide you with an output like that:

{
  "back": "33.33% (3 commits)",
  "front": "33.33% (3 commits)",
  "mixed": "33.33% (3 commits)"
}

It means some 1/3 of your commits are in backend, 1/3 are in frontend, and 1/3 are mixed.

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago