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

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 ccperl is not found on Unix(?)
  • There are cases when rmelem is 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.
  • rmelem is 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...)


EditAttachPrint versionHistory: r4 < r3 < r2 < r1BacklinksRaw ViewRaw editMore topic actions