在Mercurial储存库历史记录中快速找到已删除的文件? [英] Find deleted files in Mercurial repository history, quickly?
本文介绍了在Mercurial储存库历史记录中快速找到已删除的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您可以使用hg grep,但是它将搜索所有文件的内容.
You can use hg grep, but it searches the contents of all files.
如果我只想搜索已删除文件的文件名以恢复一个文件怎么办?
What if I just want to search the file names of deleted files to recover one?
我尝试了hg grep -I 文件名模式 模式,但这似乎没有任何结果.
I tried hg grep -I file-name-pattern pattern but this seems to return no results.
推荐答案
使用模板很简单:
$ hg log --template "{rev}: {file_dels}\n"
这篇关于在Mercurial储存库历史记录中快速找到已删除的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文