user2370590
user2370590

Reputation: 847

clearcase rebase permission to specific person

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.

Upvotes: 1

Views: 91

Answers (1)

VonC
VonC

Reputation: 1323573

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

Upvotes: 1

Related Questions