Get visual diff of two revisions of a file

diff, mercurial

Solution

If by 'visual' you mean a text comparison you can do:

hg diff -r 3 -r 12

If you want a GUI tools you can easily configure and use the ExtDiff extension, which comes with Mercurial, and use:

hg yourdiff -r 3 -r 12

where `yourdiff` was configured in your `hgrc` file.

Problem

I'd like to know the best/easiest way to get a visual diff of a file given two revisions in Mercurial. I.e., I'd like to visualize the difference between revision 3 and revision 12, etc.

Original source