Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View differences between two changesets on one file

Tags:

mercurial

I have a file tracked in Mercurial. I can see its history with hg log. How can I see the diffs between its most recent version, and the last checked-in changeset?

like image 739
AP257 Avatar asked Nov 11 '10 12:11

AP257


1 Answers

hg diff -r <first_revision_number>:<other_revision_number> filename

that will do it

e.g hg diff -r 0:1 default.aspx

hope it helps

like image 108
stack72 Avatar answered Nov 11 '22 23:11

stack72