I would like to view from the commandline what was changed in given Mercurial commit similar to what one would see from hg status
or from the TortoiseHg tool. The closest I can seem to get is hg log --stat
but that prints extra symbols (i.e. pluses and minuses) and I cannot specify at which specific revision I want to look.
I need this because I have developers who have check-in comments like "." or ",". >:-(
It turns out that
hg status
has a--change
argument where you can pass the revision number (e.g. 109), relative revision (ie -1 is last commit, -2 is second-last, etc), or the hash of the revision to it and it will print out the changes (i.e. additions, removals, and modification) that revision had.--change
isolates that revision and shows just from that revision, but replacing--change
with--rev
shows the cumulative effect since that revision to the current state.