如何暂时从流中排除文件夹然后稍后将其包含
我想将流下载到工作区并排除某些文件夹(因为它太大) 然后,当我完成下载时,我想将其下载到我的工作区,
因此
1- 如何从流中排除文件夹
2- 如何在不弄乱任何内容的情况下包含相同的文件夹
I want to download a stream to a workspace and exclude certain folder(because it's too large)
then when I am done downloading I want to download it to my workspace
so
1- how to exclude a folder from stream
2- how to include the same folder without messing anything
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

如果您只想将其从初始同步操作中排除,则根本不需要修改流。 (修改流可能会影响使用同一流的其他工作区,这是您不希望的。)
编辑您的客户端以指向新流(在这种情况下,您不想使用
p4 switch
因为它会自动同步新流),然后仅同步您需要的文件夹(即枚举 除了 的所有顶级文件夹sync
命令)。下次您进行无限制同步时,它将拾取尚未下载的所有内容,包括您第一次避免的大文件夹。
If you only want to exclude it from your initial sync operation, you don't necessarily need to modify the stream at all. (Modifying the stream may potentially impact other workspaces using the same stream, which you don't want.)
Edit your client to point at the new stream (in this instance you don't want to use
p4 switch
since that auto-syncs the new stream), and then sync only the folders that you need (i.e. enumerate all the top-level folders except for the big folder in yoursync
command).The next time you do an unrestricted sync, it will pick up everything that hasn't been downloaded, including the big folder that you avoided the first time around.