Mercurial commandline: How to show changes of a specific revision?

前端 未结 3 1159
生来不讨喜
生来不讨喜 2021-02-07 06:18

After I pull a new head into my repository, I want to see what files are touched by the new head. Like an hg status but without changing over to i

3条回答
  •  礼貌的吻别
    2021-02-07 06:46

    The status command shows you which files are changed. Use

    hg status --rev .:tip
    

    to compare the working copy parent revision (the currently checked out revision) with the tip revision.

    If you've pulled more than one changeset, then this is different from

    hg status --change tip
    

    That command only shows the files touched by the tip changeset — not the combined changes between the currently checked out changeset (.) and tip.

提交回复
热议问题