在 Perforce 中,有没有办法标记一个文件永远不应该被集成?
在我们工作的 Perforce 工作空间中,有几个控制文件包含永远不应该跨分支集成的分支信息。
有没有办法告诉 Perforce 在集成中始终忽略这些文件?
In our Perforce workspaces at work, there are a couple of control files that contain branch information that should never be integrated across branches.
Is there a way to tell Perforce to always ignore these files in integrations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以设置分支规范并将其用于集成。
You could set up a branch spec and use that for your integrations.
您可以通过
p4 Protect
使用某些类型的权限,这样只有管理员才能修改它们。我知道这适用于实际签出和签入文件,但我不确定是否将其集成到另一个分支。You may be able to use some type of permissions through
p4 protect
, so that only the admin can modify them. I know this works for actually checking out and checking in a file, but I'm not sure about integrating it to another branch.您可以编写一个服务器端触发器脚本来查找控制文件名并将其从集成中过滤出来。
关于触发器有非常好的文档。公共 Perforce 仓库中也有大量示例。
You could write a server-side trigger script that looks for the control file names and filters them out of an integrate.
There's pretty good documentation on triggers. There's a load of examples too in the public Perforce depot.