Examining a single changeset in Mercurial

22,624

Solution 1

Pass -v to log and it will print out additional information, including a list of files changed.

Example:

hg log -v -r<rev> | grep ^files

Solution 2

I was looking for the same thing and found the following command, which is more what I was looking for:

hg status --change <rev>

Found in this article.

Solution 3

If you want to see how did the contents of the files were changed for a given revision you can use:

hg diff --change <rev>

If you want to see the diff between the current revision and the one you are interested in, you can use:

hg diff -r <rev>
Share:
22,624

Related videos on Youtube

hekevintran
Author by

hekevintran

Updated on June 07, 2020

Comments

  • hekevintran
    hekevintran about 4 years

    In Mercurial, how do you examine a single changeset? hg log -l 5 will give me a summary of the newest 5 changesets, but how do I get a list of the files changed in one changeset? I don't want to do a diff.

    • Tim Pietzcker
      Tim Pietzcker over 14 years
      Changed in comparison to what? I don't quite see how you want to do that without a diff.
    • hekevintran
      hekevintran over 14 years
      I want a list of the files in the diff, but I don't want to see the diff.
    • StayOnTarget
      StayOnTarget almost 5 years
  • zaxy78
    zaxy78 over 5 years
    worked best for me. uset '.' of course for current REV, hg status --change .