After I pull a new head into my repository, I want to see what files are touched by the new head. Like an hg status
but without changing over to i
Use the --change
option to hg status, passing it the revision you're curious about. For instance,
hg status --change tip
lists the files changed in tip
. I believe this flag was added in hg 1.7.
Lol. Amazing how forcing myself to ask the question makes me realise where best to look.
hg diff -r11 --stat
The --stat seems to get me what I'm after.
The status command shows you which files are changed. Use
hg status --rev .:tip
to compare the working copy parent revision (the currently checked out revision) with the tip revision.
If you've pulled more than one changeset, then this is different from
hg status --change tip
That command only shows the files touched by the tip
changeset — not the combined changes between the currently checked out changeset (.
) and tip
.