Examining a single changeset in Mercurial

前端 未结 3 1521
滥情空心
滥情空心 2020-12-24 05:20

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 chan

相关标签:
3条回答
  • 2020-12-24 05:53

    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.

    0 讨论(0)
  • 2020-12-24 06:13

    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
    
    0 讨论(0)
  • 2020-12-24 06:16

    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>
    
    0 讨论(0)
提交回复
热议问题