Perforce 可以做某种变更列表白名单吗?
是否可以限制对 Perforce 仓库的写访问,但仍然允许特定的更改列表?基本上,我不想在代码锁定期间花费大量时间管理可写组中的用户(添加用户、等待签入、删除用户),我宁愿只拥有一个添加批准的变更列表编号的列表。
Is it possible to restrict write access to a Perforce depot, but still allowing particular changelists? Basically, instead of spending lots of time managing users in a write-enabled group during a code lock (add user, wait for check-in, remove user) I'd rather just have a list I add approved changelist numbers to.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建一个触发器脚本来执行此操作。我使用 JIRA 做同样的事情。当有人输入评论时,他们会包含 Jira 编号。我的触发器查询 Jira,并确保 Jira 中有适当的注释,然后才允许他们提交。
您实际上无法在更改列表上执行此操作,因为在实际提交发生之前您不知道更改列表编号。
You can create a trigger script to do it. I do the same thing using JIRA. When someone types in a comment, they include the Jira number. My trigger queries the Jira, and makes sure there is the appropriate comment in the Jira before allowing them to submit.
You can't really do it on changelists since you don't know the changelist number until the actual submit happens.