CM wiki web
Add by rdcwayx
Disable to delete element:
cleartool mktrtype -element -all -preop rmelem -nuser cmadmin -c "No one can delete an element" -exec "ccperl -e die()" NO_RMELEM
Disable to rename element:
cleartool mktrtype -element -all -preop rmname -nuser cmadmin -c "No one can rename an element" -exec "ccperl -e die()" NO_RENAME
Maybe one should try to understand how they could be criticized:
Discussion
These are only trivial examples of triggers, even explicitely mentioned in the Base ClearCase FAQ 1.7.1.Maybe one should try to understand how they could be criticized:
- I cannot check now the portability, but I believe
ccperlis not found on Unix(?) - There are cases when
rmelemis the right thing to do, and even then, the sooner the better.- Suppose you just imported (e.g. with
clearfsimport) a new version of a tool (100's of files) and you notice you did it in the wrong directory—the tool was already found somewhere else. Well, the best is to clean up what you did before anybody else may access it. Do it fast, as you still can, because if somebody has time to drop a label for instance, you won't be allowed anymore.
- Suppose you just imported (e.g. with
-
rmelemis already guarded against the most glaring misuses. You can only remove something you own, and which doesn't bear labels (there used to be some darks corners there, maybe there still is...)
