对特定人员的clearcase rebase许可 [英] clearcase rebase permission to specific person
问题描述
是否可以只允许特定人员重新设置基准?
Is it possible to provide permission to rebase for a specific person only?
当前,我可以看到clearcase只能使用任何用户允许重新设置基准选项。
Currently i can see clearcase can only "any user allow rebase" option.
如果可能的话,请告诉我如何更改流以允许为特定人员重新设置基准。
If possible please let me know how can I change the stream to allow permission to rebase for a specific person.
推荐答案
最简单的方法是 cleartool lock -nusers aUser
流,但这会限制 any 命令(不只是变基)给那个人。
The easiest way is to cleartool lock -nusers aUser
a stream, but that will limit any command (not just rebase) to that person.
cleartool lock -nusers aUser stream:astream@/vobs/apvob
更精确的选择是在变基上进行操作前触发(使用 cleartool mktrtype
),它可以测试用户和流,并允许或拒绝基于rebase
The more precise option is to make a pre-op trigger on rebase (with cleartool mktrtype
), which test the user and stream and allows or denied the rebase based on those two parameters.
cleartool mktrtype -ucmobject -all -preop rebase_start -execunix 'yourScript' -execwin 'ccperl yourScript.pl"' UCM_BLOCK_REBASE
例如,请参阅此 基于角色的预操作触发脚本(对于您的情况来说有点太复杂了,但是可以让您对预操作触发脚本的可能实现有所了解)。
See for instance this "Role-based preoperation trigger script" (a bit too complex for your case, but which can give some idea about a possible implementation of the preop trigger script).
这篇关于对特定人员的clearcase rebase许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!