tags:

views:

66

answers:

2

I want something like this

hg vdiff filename.txt -lastRevision -secondLastRevision

+2  A: 

I don't know what vdiff is, but how about:

hg diff -r rev1 -r rev2 filename.txt

Edit: to get the last 2 revisions, that would be:

hg diff -r -1 -r -2 filename.txt

Type hg help revisions for information about specifying revisions.

JWWalker
I know about this command but I wanna compare last two revisions ...getting last two versions value dynamically...makes sense ?
Nitesh
@Nitesh: I edited my answer to respond to that.
JWWalker
Thanks a ton for your help
Nitesh
A: 

Use

hg diff -r -3 -r -2 file
Loxley
When Nitesh said "last two versions", I assumed he meant the current version and the one before.
JWWalker