How to view revision history for Mercurial file?

Marcus Leon picture Marcus Leon · Aug 11, 2010 · Viewed 76.6k times · Source

For a given file in a Mercurial repository, how can you see the revision history?

And how can you diff two revisions of the file?

Ideally doing all this with visual tools (we use ExamDiff to do some other diffs).

I'd say this is basic source control functionality but I can't seem to figure out how to do this with Mercurial.

Answer

zerkms picture zerkms · Aug 11, 2010
hg log file

hg diff -r 10 -r 20 file