Mathematics, philosophy, programming, in-line skating and everything in between. More about me…

My Blog

My Latest Tweets

Follow me on Twitter…
English | Czech
Choose your language. I write in English, but I translate most of my articles to Czech as well. Zvolte si jazyk. Píšu anglicky, ale většinu svých článků překládám i do češtiny.

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:

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:

Commit Chart 2

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)

April 2, MMIX — Linux and Programming.

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.