Mercurial: Easy way to see changes from last commit
Use hg diff -c tip
, or hg tip -p
(shorter, but works only for tip).
This will work until you pull something, since tip
is an alias for the most recent revision to appear in the repo, either by local commit or
pull/push from remote repositories.
You can use relative revision numbers for the --change
option:
hg diff -c -1
See https://stackoverflow.com/a/3547662/239247 for more info.