如何在影响目录z的日期x和日期y之间获得用户W的更改列表?

发布于 2025-02-09 18:29:25 字数 659 浏览 1 评论 0原文

我认为命令是一个>,但我无法弄清楚我想要的语法。

我尝试了

p4 changes -u myusername @2021/09/08,2022/04/04 /path/to/directory

日期间隔和用户名似乎很荣幸的位置,但路径不是,所以我认为我已经误解了 // depot/project/...在此示例中:

p4更改-m 5 // depot/project /... 显示最后五个提交的,待处理或搁置的变更派,其中包括project目录中的任何文件。

当我在仓库中选择文件时,我尝试从Perforce Helix P4V中的地址栏沿路径走。

I think the command is p4 changes, but I can't figure out the syntax for what I want.

I tried with

p4 changes -u myusername @2021/09/08,2022/04/04 /path/to/directory

where the date interval and the user name seem to be honored, but the path is not, so I think I've misunderstood what the doc means by //depot/project/... in this example:

p4 changes -m 5 //depot/project/... Show the last five submitted, pending, or shelved changelists that include any file under the project directory.

I tried taking the path from the address bar in Perforce Helix P4V when I select the file in the depot.

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

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

发布评论

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

评论(1

与往事干杯 2025-02-16 18:29:25

修订说明符会修改文件路径,并作为一个参数一起进行:

p4 changes -u myusername /path/to/directory/...@2021/09/08,2022/04/04 

请参见p4帮助更改p4帮助修订

p4更改等许多命令以文件[REDRANGE]参数;在上面的示例中IS revrange

如果您单独指定revrange,则file是隐式// ...,这就是为什么您尝试过的命令的第一个版本在整个仓库中返回结果。 /path/to/directory被解释为单独的参数;如果您停止了尾随...通配符,它​​将不匹配任何文件,因此结果的一部分只是空。

The revision specifier modifies the file path and they go together as a single argument:

p4 changes -u myusername /path/to/directory/...@2021/09/08,2022/04/04 

See p4 help changes and p4 help revisions.

A lot of commands like p4 changes take a file[revRange] argument; in the above example /path/to/directory/... is file and @2021/09/08,2022/04/04 is revRange.

If you specify a revRange on its own then file is implicitly //..., which is why the first version of the command you tried returned results across the entire depot. The /path/to/directory was interpreted as a separate argument; if you left off the trailing ... wildcard it wouldn't match any files, so that part of the result was just empty.

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