[PATCH 0 of 2] Add diff coloring to the color extension

Georg Brandl georg at python.org
Sat Nov 22 13:26:21 CST 2008


Hi,

these two patches against crew add diff coloring to the color extension.

The first one is straightforward and adds it to the "hg diff"
command, following the example of the "hg status" wrapper.

The second one monkey-patches cmdutil.changeset_printer.showpatch
to support coloring in diffs produced by the --patch option of
various commands. I am not sure if this is the right function
to monkey-patch though.

The patches are also in http://dev.pocoo.org/hg/hg-crew-birkenfeld/
for easy pulling.

cheers,
Georg


More information about the Mercurial-devel mailing list