如何区分 2 个 Perforce 客户端规格

发布于 2024-08-23 11:33:16 字数 717 浏览 4 评论 0原文

我有两个 perforce 客户端(客户端-a、客户端-b),每个客户端包含大约 40 个文件规范。它们很相似,但每个客户端都有几个不包含在另一个客户端中的文件规范。我想找出这些客户端规格之间的差异。理想情况下,输出看起来像这样...

File specs in client-a and not in client-b:
//depot/dirA/...
//depot/dirG/...

File specs in client-b and not in client-a:
//depot/dirD/...
//depot/dirX/...

如果我可以做类似 p4 diff -c client-a -c client-b 的事情,那就太好了,但在阅读 p4 diffp4 diff2,这不会似乎有可能。我可以求助于编写 awk 脚本,但认为可能有更好的解决方案。有没有一种简单的方法可以实现这一点?

I have two perforce clients (client-a, client-b) that each contain about 40 file specs. They are similar, but each client has several file specs that aren't included in the other. I would like to find the differences between these client specs. Ideally, the output would look something like this...

File specs in client-a and not in client-b:
//depot/dirA/...
//depot/dirG/...

File specs in client-b and not in client-a:
//depot/dirD/...
//depot/dirX/...

It would be nice if I could do something like p4 diff -c client-a -c client-b but after reading the documentation for p4 diff and p4 diff2, this doesn't seem possible. I could resort to writing an awk script, but thought there might be a better solution. Is there an easy way to accomplish this?

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

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

发布评论

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

评论(1

安穩 2024-08-30 11:33:17

您可以创建规范库。完成此操作后,您将能够比较客户端规格(除其他外),就像比较源文件一样。

替代文本 http://img192.imageshack.us/img192/448/specdepot.png< /a>

You can create a spec depot. After you've done that, you will be able to compare client specs (among other things) just like you compare source files.

alt text http://img192.imageshack.us/img192/448/specdepot.png

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