3

I am using the command line tools of Perforce. And with the p4 tool, I want to sync to a stream.

The problem is that I want to exclude a directory from my workspace. If my work space was defined as a view, this would be possible with something like:

View:
    //depot/Foo/... //Client/Foo/...
    -//depot/Foo...bin/... //Client/Foo...bin/...

But the Stream: setting overrides the View: specification.

I have set the Stream using the command:

$ p4 client

I also looked into P4IGNORE mechanism, but this is of no use to my problem, as P4IGNORE will not influence the sync command.

I tried adding a Paths: command to my client spec, but that is not recognized in this context. I think it is used when specifying the stream, as done by the administrator of the depot?

4

1 回答 1

4

这正是虚拟流的用途。:) 创建类型为 的流的子流virtual,并从虚拟子流中排除目录(通过流规范PathsIgnore在流规范中)。这将为您生成一个客户端视图,它是父流的所需子集。

https://www.perforce.com/blog/virtual-streams-windows-big-projects

于 2017-08-16T19:21:00.297 回答