HTML output of 'bzr diff' using Python's difflib.HtmlDiff

Erik Bågfors zindar at
Wed Apr 2 16:54:32 BST 2008

vimdiff is really good for this. If you can live with vim. I'm sure
emacs has something like it also.


On Wed, Apr 2, 2008 at 5:34 PM, Vincent Vertigo
<vincent.vertigo at> wrote:
> Hi,
> I'm using Bazaar on a Solaris environment that lacks decent GUI capabilities
> (no proper Qt / Gtk libraries there...).
> We rely on 'bzr diff' raw output for code review, but it gets quite
> unreadable when big changes are introduced.
> The idea would be to ease code review times by producing HTML files, using
> Pythons' standard library difflib - the HtmlDiff object precisely.
> In short, it would produce a diff HTML table for every file that differs
> between 2 branches.
> Has something similar ever been done (e.g. as a plugin)?
> Or else, how hard would it be to write my own plugin? (I've never played in
> that field before).
> Unless alternative solutions exist, which I'd love to hear about.
> Thanks in advance for your valuable comments.

More information about the bazaar mailing list