Perforce - 查找被修改、添加或删除的文件

发布于 2024-09-10 13:47:51 字数 63 浏览 2 评论 0原文

为了保持我们 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无语# 2024-09-17 13:47:51

我看不到将日期表示为“@now-7days”的方法。

但考虑到这个日期,您可以尝试计算以下方法返回的行数:

p4 files //...@yyyy/mm/dd,@now

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 files //...@yyyy/mm/dd,@now
月朦胧 2024-09-17 13:47:51

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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文