如何区分 2 个 Perforce 客户端规格
我有两个 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 diff
和 p4 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建规范库。完成此操作后,您将能够比较客户端规格(除其他外),就像比较源文件一样。
替代文本 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