问题
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