Mercurial - determine where file was removed?

后端 未结 3 1758
不知归路
不知归路 2021-02-05 04:52

If you do hg log myfile -v you see a list of changesets that the file was modified in.

In our case, in the most recent changeset, the file was removed. But

3条回答
  •  迷失自我
    2021-02-05 05:32

    You can check which revision deleted a file (any many other interesting features) using revsets:

    hg log -r 'removes()'

    Some examples:

    hg log -r 'removes(build.xml)' // where build.xml used to be in the current directory

    hg log -r 'removes("**/build.xml")' // where build.xml may have been in sub directories

    See hg help revsets for details.

提交回复
热议问题