如何在影响目录z的日期x和日期y之间获得用户W的更改列表?
我认为命令是一个>,但我无法弄清楚我想要的语法。
我尝试了
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 theproject
directory.
I tried taking the path from the address bar in Perforce Helix P4V when I select the file in the depot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
修订说明符会修改文件路径,并作为一个参数一起进行:
请参见
p4帮助更改
和p4帮助修订
。p4更改
等许多命令以文件[REDRANGE]
参数;在上面的示例中ISrevrange
。如果您单独指定
revrange
,则file
是隐式// ...
,这就是为什么您尝试过的命令的第一个版本在整个仓库中返回结果。/path/to/directory
被解释为单独的参数;如果您停止了尾随...
通配符,它将不匹配任何文件,因此结果的一部分只是空。The revision specifier modifies the file path and they go together as a single argument:
See
p4 help changes
andp4 help revisions
.A lot of commands like
p4 changes
take afile[revRange]
argument; in the above example/path/to/directory/...
isfile
and@2021/09/08,2022/04/04
isrevRange
.If you specify a
revRange
on its own thenfile
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.