Examining a single changeset in Mercurial
Asked Answered
B

4

45

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.

Breathed answered 31/3, 2010 at 5:34 Comment(3)
Changed in comparison to what? I don't quite see how you want to do that without a diff.Moneyer
I want a list of the files in the diff, but I don't want to see the diff.Breathed
Possible duplicate of Mercurial - all files that changed in a changeset?Mccollum
O
35

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
Oregon answered 31/3, 2010 at 6:45 Comment(0)
R
27

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.

Rizzi answered 14/1, 2015 at 16:5 Comment(1)
worked best for me. uset '.' of course for current REV, hg status --change .Specific
C
13

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>
Chair answered 6/6, 2017 at 11:10 Comment(0)
E
0

To get the list of files changed in one specific changeset use --stat option

Example:

hg log --stat -r <rev>
Empanel answered 31/1 at 5:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.