Search code examples
mercurialdiffrevision

How to view revision history for Mercurial file?


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.


Solution

  • hg log file
    
    hg diff -r 10 -r 20 file