【问题标题】:Mercurial Log: how to show renames?Mercurial Log:如何显示重命名?
【发布时间】:2013-04-17 04:14:42
【问题描述】:

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

【问题讨论】:

    标签: logging mercurial rename


    【解决方案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
    

    【讨论】:

      猜你喜欢
      • 2011-05-07
      • 2012-11-07
      • 2012-11-28
      • 1970-01-01
      • 2010-11-16
      • 2012-12-06
      • 1970-01-01
      • 2012-12-21
      • 2010-12-22
      相关资源
      最近更新 更多