Yesterday i came across a very nice tweet pointing to the "Gource visualisation of Homebrew commits" (I'll promise to post about Homebrew soon).

The visualization is based on Gource, a wonderful OpenGL-based version control visualization tool.

I couldn't help and realized a short visualization of the LAW repository evolution over the last few months.

Gource supports Mercurial and Git natively, but since the LAW repository is SVN-based I followed the instructions, so first I obtained and converted the commit log:

svn log -r 1:HEAD --xml --verbose --quiet > log_r.xml
python svn-gource.py log_r.xml | gtac > law.txt

(I used tac to obtain the correct temporal ordering), then I used Gource and ffmpeg to create the movie and add a soundtrack:

gource --title "Law SVN" --file-idle-time 0 --seconds-per-day 1 --camera-mode track log.txt -o - | \
    ffmpeg -y -b 3000K -r 60 -f image2pipe -vcodec ppm -i - \
        -vcodec libx264 -vpre slow -threads 0 law_m.mp4
ffmpeg -y -i law_m.mp4 -i audio.mp3 -vcodec copy law.mp4

Nice, isn't it? People committing fly around the code and seem to fire at files…

Comments