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.
            Asked
            
        
        
            Active
            
        
            Viewed 2.4k times
        
    45
            
            
        - 
                    Changed in comparison to what? I don't quite see how you want to do that without a diff. – Tim Pietzcker Mar 31 '10 at 06:06
- 
                    I want a list of the files in the diff, but I don't want to see the diff. – hekevintran Mar 31 '10 at 06:30
- 
                    Possible duplicate of [Mercurial - all files that changed in a changeset?](https://stackoverflow.com/questions/3789442/mercurial-all-files-that-changed-in-a-changeset) – StayOnTarget Jul 17 '19 at 16:19
3 Answers
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
 
    
    
        ataylor
        
- 64,891
- 24
- 161
- 189
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.
 
    
    
        Jay Sheridan
        
- 668
- 8
- 15
- 
                    worked best for me. uset '.' of course for current REV, `hg status --change .` – zaxy78 Mar 26 '19 at 13:17
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>
 
    
    
        Mugur 'Bud' Chirica
        
- 4,246
- 1
- 31
- 34
