0

有没有办法建立一个具有客户端映射到某些元素的特定修订版的 perforce 工作区?

例如:

//depot/...                 //localpath/...
//depot/external/...@117    //localpath/external/...

在这种情况下,第一行应将整个 depo 映射到localpath,但external子文件夹应映射到externaldepot 文件夹的修订版 117。

我知道这种语法不起作用,但是有没有办法使用客户端映射来实现这个目标?

4

2 回答 2

4

In the 2014.2 release of the Perforce server, there is an interesting new feature that might address your needs:

#770674 (Bug #1648) **
    Client specs now support an optional 'ChangeView' field that
    locks certain depot paths to a particular changelist level:

    ChangeView:
        //depot/path/...@1000

    Revisions belonging to files under those paths will not be
    visible if they were submitted after the given changelist.
    Files mapped in the ChangeView may not be submitted.
于 2014-10-17T18:08:00.130 回答
1

不,不可能映射文件的特定修订(通过标签或日期或其他)。

解决此问题的方法是分支//depot/external/...@117 到单独的路径,然后映射该路径:

p4 integrate //depot/external/...@117    //depot/external_v117/... p4
submit

那么客户端视图可能是这样的:

//depot/...                 //yourclient/...
//depot/external_v117/...   //yourclient/external/...
-//depot/external/...         //yourclient/external/...

但正如您可能注意到的,仓库树很容易混淆。所以你应该事先计划这样的结构。

于 2014-09-17T13:21:07.113 回答