简体   繁体   English

如何跨不同的Perforce软件仓库进行两种方式的集成?

[英]How to do both ways integrations across different Perforce depots?

I would like to know how we are supposed to do integration between different Perforce servers/depots. 我想知道我们应该如何在不同的Perforce服务器/软件仓库之间进行集成。

I'm looking for a solution that would allow us to do both-ways integrations. 我正在寻找一种允许我们进行双向集成的解决方案。

This Using Remote Depots article describes how to map the remote depot as read only. 这篇使用远程仓库的文章介绍了如何将远程仓库映射为只读。 Is this the only solution to do mappings on both servers? 这是在两个服务器上进行映射的唯一解决方案吗? If so, this means that I could not use a single branch spec to do both ways integrations. 如果是这样,则意味着我不能使用单个分支规范来同时进行两种方式的集成。

From reading the Perforce knowledge base, I believe the preferred/suggested solution is for each server to do the integrate from the read-only remote depot. 通过阅读Perforce知识库,我相信首选/建议的解决方案是让每台服务器从只读远程仓库进行集成。

This is a by-design limitation of Perforce because the meta-data is only available to the local server, eg serverA:1666 does not know commands performed by a user on serverB:1666 (as explained in the case-study at the bottom of this article ). 这是Perforce的设计限制,因为元数据仅可用于本地服务器,例如serverA:1666不知道用户在serverB:1666上执行的命令(如底部的案例研究所述) 本文 )。

Also the point regarding performance is absolutely true ; 同样关于性能的观点是绝对正确的 ; our server was hammered this afternoon during a code drop from a remote depot. 我们的服务器今天下午在从远程仓库删除代码时受到重击。 All we could do was wait until the integrate/diff was complete. 我们所能做的就是等到集成/差异完成。

To find out what is happening on your server, use the command p4 monitor show to show what the current workload on your server. 要了解服务器上正在发生的事情,请使用命令p4 monitor show来显示服务器上当前的工作量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM