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

I like graphs. Writing little scripts that somehow utilize the gnuplot program is my favorite pastime. Today I am going to share one such script that might be actually useful :-).

commitChart is a small AWK toy that can generate a chart of commit activity in a Subversion repository. The X axis displays time while the Y axis displays the number of commits done each day. The chart is written to a file called commitChart.png.

Usage is very simple:

commitChart.awk <repository URL>

The repository URL argument is the same you would use with Subversion, e.g.:

$ ./commitChart.awk file:///home/zephyr/SVN/nexus

The above command generates a commit chart of Project Nexus that at the moment looks like this:

Project Nexus Commit Chart

The script is rather primitive but I enjoy using it from time to time. It either reminds me that I should work harder on a project, or it gives me that nice warm feeling that I am making progress. Of course, the number of commits alone doesn’t always accurately indicate the real evolution of a given project :-)

Feel free to give commitChart a try. I’ll be happy to hear your opinions and suggestions.

Download: commitChart.awk (1094B)

September 30, MMVIII — Linux and Programming. 3 comments.

3 comments Add your own…

(avatar) descriptive essay June 24, MMXI
Very useful program! Thanks!
(avatar) Charles Sewe April 30, MMXII
Awesome stuff man.
(avatar) Vita April 30, MMXII
Thanks! You may also like the improved version.

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.