Perforce - 查找被修改、添加或删除的文件
为了保持我们 perforce 仓库的质量,我想找到在一段时间内(比如上周)修改、添加或删除的文件。我该怎么做?
For maintaining the quality of our perforce depot, I would like to find file which were modified, added or deleted over a certain period of time - say over last week. How do I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我看不到将日期表示为“@now-7days”的方法。
但考虑到这个日期,您可以尝试计算以下方法返回的行数:
I don't see a way of expressing a date as "@now-7days".
But given this date, you could try to count the lines returned by:
p4 fstat -T "headModTime" FILENAME
将为您提供该文件的头修订版本的修改时间。不完全确定是什么格式 - 是自纪元以来的秒数吗?p4 fstat -T "headModTime" FILENAME
will get you the time that the head revision of that file was modified. Not entirely sure what format that is in - is it seconds since epoch?