如何使用 Perforce 查找特定用户上周提交的变更列表?

发布于 2024-07-21 14:05:40 字数 208 浏览 5 评论 0原文

有没有办法要求 Perforce 列出特定用户在特定时间范围内提交的所有变更列表?

p4 更改@2001/04/01,@now 这列出了从 4 月 1 日到现在提交的所有更改。

p4 更改 -m 5 -u edk 显示用户 edk 最近提交的五个变更列表。

有没有办法将上述两者结合起来用于特定目录?

Is there a way to ask Perforce to list all changelists submitted by a particular user in a specific time frame ?

p4 changes @2001/04/01,@now
This lists all the changes submitted from 1st April till now.

p4 changes -m 5 -u edk
Shows the last five submitted changelists from user edk.

Is there a way to combine both the above for a particular directory ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

不美如何 2024-07-28 14:05:40

如果您想在特定时间范围内获取更改,

示例:p4更改-u abc -s提交@2015/09/01:12:02:49,2015/10/01:11:20:55

这应该列出在给定时间范围内提交了“abc”的更改,即从 2015/09/01 12:02:49 到 2015/10/01 11:20:55。 请注意连接日期和时间的“:”。

If you want to get changes in a particular time frame,

Example : p4 changes -u abc -s submitted @2015/09/01:12:02:49,2015/10/01:11:20:55

This should list the submitted changes of 'abc' in the give time frame, that is from : 2015/09/01 12:02:49 to 2015/10/01 11:20:55. Note the ':' which concatenates the date and time.

机场等船 2024-07-28 14:05:40

如果您使用的是 bash,则可以编写整个命令的脚本:(

p4 changes -l -i -m 50 -u $USERNAME -s submitted @`date --date="1 week ago" +"%Y/%m/%d"`,@now

我还使用 -l 来包含完整的提交消息。)

If you're using bash, you can script the whole command:

p4 changes -l -i -m 50 -u $USERNAME -s submitted @`date --date="1 week ago" +"%Y/%m/%d"`,@now

(I'm also using -l to include the full commit message.)

习ぎ惯性依靠 2024-07-28 14:05:40

您可以像这样组合它们:

p4changes -m 5 -u edk -s Submitted @2001/04/01,@now

要指定目录:

p4changes -m 5 -u edk -s 已提交 //depot/path/to/directory/...@2001/04/01,@now

You can combine them like so:

p4 changes -m 5 -u edk -s submitted @2001/04/01,@now

To specify a directory:

p4 changes -m 5 -u edk -s submitted //depot/path/to/directory/...@2001/04/01,@now

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