gpt4 book ai didi

Perforce 仓库

转载 作者:行者123 更新时间:2023-12-03 06:32:24 28 4
gpt4 key购买 nike

是否最好让一个软件仓库包含多个文件夹,这些文件夹映射到工作区中的不同路径。或者一个仓库中的多个文件夹映射到多个工作区,或多个仓库映射到多个工作区。

有人对此事有任何实用建议吗?

我还注意到,当我在仓库中有多个文件夹映射到工作区中的不同路径时,当我与仓库进行差异时,子文件夹之一的更改不会显示在差异中。

最佳答案

根据您仓库的大小,我认为这更多是一个品味问题。我们目前有两个不同的仓库,但主要是因为它们本质上是分离的(//sw//data/)。 Perforce Knowledge Base说:

The most significant difference with the multiple depot configuration is that, in the Perforce Server P4ROOT directory, each project is stored in its own top-level depot directory (rather than as a subdirectory of a single depot). The multiple depot configuration allows you to use the depot "Map" field to put each top-level depot directory on a separate filesystem, if desired. More on using the Map field can be found in the Command Reference entry for the p4 depot command.

Performance is another consideration in configuring single vs. multiple depots. By splitting projects into separate depots, file paths for many Perforce operations are inherently limited to a more narrow range of files, resulting in reduced need to scan certain database tables. The performance difference is dependent on the particular data sets and usage. For many small installations, there is no appreciable difference. However, for larger installations and for some usage environments, the performance difference might be significant.

关于Perforce 仓库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2609772/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com