0.1.5 • Published 11 years ago
svn-log-stat v0.1.5
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 -gUsage
First, you need to run svn log in your repository:
svn log --xml -v > svn.logIt 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-statOr (all keys are optional):
svn-log-stat -log svn.log -conf svn-log-stat.json -out output.txtIt 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.