Graphing Subversion Commit Activity II.
Long time ago I published my little commitChart script. Since then, I have reworked it several times. The current version is exactly three times better than the old one :-)
The first improvement concerns ease of use: it is no longer necessary to supply a repository URL on the command line. If you run commitChart anywhere in a working copy, it will find the URL by parsing the output of svn info.
The second improvement allows you to decide what to do with the generated chart. The script now accepts two arguments which may be arbitrarily combined:
savemakes commitChart to save the chart to a file in the current directory rather than to a temporary file.noDisplaytells the script not to display the chart, only generate it.
For instance, if I wanted to generate a commit chart and keep it for later use, I would issue these commands:
$ cd /working/copy/of/some/subversioned/project $ commitChart.awk noDisplay save
The final improvement adds a second data set to the chart. Apart from the number of commits per day, the growing revision number is now graphed as well.
One example will demonstrate the point better than words:
There is a compatibility trade-off for these fancy features: the new version requires gawk instead of plain ol’ awk.
Feel free to give the new commitChart a try. I’ll be happy to hear your opinions and suggestions.
Download: commitChart2.awk (3.236kB)
Speak your mind
Allowed HTML tags are a, blockquote, em, code, li, ol, p, pre, strong, ul. Links to other comments in the form “[IV]” or “[4]” are detected automatically.