0

我有两个目录,例如:

//A/B/C/Folder-One/

//A/B/C/D/Folder-Two/

现在,在自动化中,我想将这些路径映射到一个客户端并同步它。

比如 //A/B/C/Folder-One/ //MYClient/Folder-One/... //A/B/C/Folder-Two/ //MYClient/Folder-Two/...

谁能帮助我如何通过自动化实现这一目标?

假设说明:在当前目录中,我有.perforce配置了各个变量并且p4 client -o工作正常的文件。

4

1 回答 1

1

undoc--field选项使这非常容易:

p4 --field "View+=//A/B/C/Folder-One/... //MYClient/Folder-One/..." client -o | p4 client -i
p4 --field "View+=//A/B/C/Folder-Two/... //MYClient/Folder-Two/..." client -o | p4 client -i

另请参阅p4 help undoc此博客文章:https ://www.perforce.com/blog/vcs/20161-command-line-roundup

于 2018-08-27T14:07:05.507 回答