perforce客户端规范 - 使不同的库路径映射到同一客户端工作空间路径

gho*_*der 3 perforce perforce-client-spec

我想用以下视图创建一个客户端:

//depot/location1/main/... //myclient/main/...
//depot/location2/main/... //myclient/main/...
Run Code Online (Sandbox Code Playgroud)

// depot/location1/main/...和// depot/location2/main /之间没有文件和目录.

但是当我执行p4同步时,它只会从// depot/location2/main/...同步...

如何从两个位置同步?

afl*_*lat 8

用这个

//depot/location1/main/... //myclient/main/...
+//depot/location2/main/... //myclient/main/...
Run Code Online (Sandbox Code Playgroud)

加号可以满足您的需求,它会告诉perforce将该库中的文件添加到已定义的工作空间位置.

  • 这里需要注意的是,如果文件名在location1和location2中匹配,那么来自location2的文件名将被同步.如果不小心,它会绊倒你. (3认同)