我想获得当前版本中最初由我创建的所有文件的列表。有谁知道我该怎么做?
最佳答案
这是另一种更直接的方法。
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/