0

hg log当为存储库根调用时(即不是为特定文件),我想查看有关命令重命名文件的信息。是否有任何选项hg log可以显示此信息?理想情况下,我希望hg log --stat通过重命名信息来扩展信息。

4

1 回答 1

1

hg log --template "{node|short}: {file_copies}\n"

注意:file_copies 关键字有小问题,与其他列表相反,比较输出

>hg log --template "{node|short}: {file_copies}\n"
cbbb1b9c321d: fileB.txt (file2.txt)fileC.txt (file3.txt)
1589ead8667d:

(file2 重命名为 FileB,file3 - 重命名为 fileC)

>hg log --template "{node|short}: {files}\n"
cbbb1b9c321d: file2.txt file3.txt fileB.txt fileC.txt
1589ead8667d: .hgignore file1.txt file2.txt file3.txt
于 2013-04-16T20:14:42.950 回答