All Articles

Using filemerge for mercurial diffs

A friend of mine found a script that brings up OSX’s FileMerge program instead of the text-based file comparisons you get with mercurial with doing an “hg diff”.

  1. download this script and make sure its location is in your PATH
  2. add the following to .hg/hgrc:
hgext.extdiff =

cmd.opendiff = fmdiff
  1. Now type hg opendiff (hg op is enough), instead of hg diff


Published Jan 7, 2009

I am a computer scientist specializing in building machine learning powered products. I’m currently a machine learning developer at Local Logic.