Perforce——如何在给定的特定时间段内获取文件的修订号
Perforce -- How to obtain a revision number of a file given a specific time period
我有兴趣在 Perforce 中获取给定特定日期或时间段的文件的修订号。
如果我使用p4 files
,我发现如果那个时间段没有新的提交,执行p4命令时返回的评论是:
no revision(s) after that date
完整示例如下:
% p4 files //depot/project/file_a.c@2018/03/06,@2018/03/07
//depot/project/file_a.c@2018/03/06,@2018/03/07 - no revision(s) after that date
但我要找的信息是2018/03/06
和2018/03/07
之间的file_a.c
的修订号,不管那个日期是否有投稿。像这样就好了:
//depot/project/file_a.c#31 - edit change 12345678
我是否使用了正确的 Perforce 命令?谢谢您的帮助。
听起来您真正想要的是该文件截至 2018 年 3 月 7 日的最新版本:
% p4 files //depot/project/file_a.c@2018/03/07
我有兴趣在 Perforce 中获取给定特定日期或时间段的文件的修订号。
如果我使用p4 files
,我发现如果那个时间段没有新的提交,执行p4命令时返回的评论是:
no revision(s) after that date
完整示例如下:
% p4 files //depot/project/file_a.c@2018/03/06,@2018/03/07
//depot/project/file_a.c@2018/03/06,@2018/03/07 - no revision(s) after that date
但我要找的信息是2018/03/06
和2018/03/07
之间的file_a.c
的修订号,不管那个日期是否有投稿。像这样就好了:
//depot/project/file_a.c#31 - edit change 12345678
我是否使用了正确的 Perforce 命令?谢谢您的帮助。
听起来您真正想要的是该文件截至 2018 年 3 月 7 日的最新版本:
% p4 files //depot/project/file_a.c@2018/03/07