version-control - 如何列出我创建的所有文件?

标签 version-control mercurial

我想获得当前版本中最初由我创建的所有文件的列表。有谁知道我该怎么做?

最佳答案

这是另一种更直接的方法。

for f in `hg locate`; do hg log -r "first(follow('$f'))" --template "$f: {author}\n"; done

翻译:

for each file
  follow its history to the beginning
    print the filename and author

简单地获取 Bob 首次引入的文件列表:

for f in `hg locate`; do hg log -r "first(follow('$f')) and author(bob)" --template "$f\n"; done

关于version-control - 如何列出我创建的所有文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9313783/

相关文章:

git - 如何将相同的存储应用于 git 中的不同分支?

mercurial - Mercurial 变更集到底是什么?

user-interface - IntelliJ 项目 Pane 下的所有文件都是红色的

mercurial - 如何始终了解 Mercurial 中的所有标签?

mercurial - 有 hgignore.io 吗?

svn - 在不同的项目/ repo 协议(protocol)之间共享代码?

mysql - 由于 cmake,从源代码构建 MySQL 会更改 Makefile

ios - Xcode 4的Project Navigator中新建工程时的 "M"和 "A"图标是什么意思?

java - 如何设置 Maven 使用公钥身份验证与 CVS 连接?

date - 获取 hg 提交的 Unix 时间戳(以秒为单位)