Blog Archive for June 15, 2010

Reading Mercurial History into Python

June 15, 2010

I wanted to read my mercurial repository history into python, so that I could display it in a Django web front end. Here's the process by which we can read in the history and put it into a tuple of (revision number, changeset, user, date, comment)

import subprocess
import datetime …

Mercurial and Bugzilla Integration using Postgres

June 15, 2010

I installed Bugzilla using Postgres before noticing that the Mercurial-Bugzilla integration only works if you're using MySql. Oops. I then had to convert the bugzilla.py plugin for Mercurial so that it worked against postgres. This work was done on Fedora 11.

/usr/lib/python2.6/site-packages/hgext/bugzilla_psql.py

This file is the source for the plugin, …