clearcase rebase permission to specific person

无人久伴 提交于 2019-12-23 01:11:40

问题


Is it possible to provide permission to rebase for a specific person only?

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.


回答1:


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

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).



来源:https://stackoverflow.com/questions/30920282/clearcase-rebase-permission-to-specific-person

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!