如何通过非本地客户端规范(cmd 行)将最后一个 Perforce 更改列表同步到特定目录?

发布于 2024-10-01 14:48:09 字数 665 浏览 0 评论 0原文

我正在尝试返回同步到每个客户端规范的特定目录的最后更改列表。我对此进行了大量研究,并开始认为这是不可能的。这就是我到目前为止所拥有的:

p4 changes -m1 @<Client_Spec_Name>

这将返回与传入的客户端规范同步的最后一个更改列表,然后我可以从中解析 CL。输出示例:

Change 798261 on 2010/11/08 by asdf@specname 'description...'

由此,我可以轻松解析出更改列表:798261。

我想要做的是获得类似的输出,但是对于传递到命令的客户端规范中映射的特定目录。我知道 -d 标志通常允许您在 perforce 命令中指定目录,但 p4 更改不支持 -d 标志。如果 p4 更改中支持 -d 标志,这就是我想要的:

p4 changes -m1 -d /root/appname/bin/...@<Client_Spec_Name>

理论上,如果支持 -d 标志,这将返回通过传入的客户端规范同步到 /root/appname/bin 的最后一个 CL 。有什么办法可以做到这一点吗?我是否缺少 p4 命令来指定目录并将最后一个 CL 同步到该目录?非常感谢任何建议。

谢谢!

I'm trying to return the last change list synced to a specific directory per client spec. I've researched this pretty heavily and am starting to think it's impossible. This is what I have so far:

p4 changes -m1 @<Client_Spec_Name>

This will return the last change list synced to the passed in client spec, which I can then parse the CL out from. Example of output:

Change 798261 on 2010/11/08 by asdf@specname 'description...'

From that, I can easily parse out the change list: 798261.

What I'm trying to do is get similar output, but for a specific directory that's mapped in the client spec that's passed into the command. I know the -d flag usually lets you specify a directory in perforce commands, but p4 changes doesn't support the -d flag. This is what I'm going for if the -d flag was supported in p4 changes:

p4 changes -m1 -d /root/appname/bin/...@<Client_Spec_Name>

In theory, if the -d flag was supported, this would return the last CL synced to /root/appname/bin through the passed in client spec. Is there any way to do this? Is there a p4 command I'm missing that would let me specify the directory and get the last CL synced to that directory? Any suggestions are greatly appreciated.

Thanks!

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

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

发布评论

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

评论(1

暖阳 2024-10-08 14:48:09
p4 changes -m1 //depot/foo/...@<client_name>

或者

p4 changes -m1 /root/appname/bin/...@<client_name>
p4 changes -m1 //depot/foo/...@<client_name>

or

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