RM_EMPTY_BRANCH.pl When cleartool uncheckout, rmbranch or rmver are performed remove the parent branch if the parent branch has no checkouts, sub-branches or labeled versions associated with it IFF (IF AND ONLY IF) the uncheckout file is the 0th element or removing the branch causes the parent branch to also be "empty" | ||
Author | : | A Better Solution, Inc. |
: | support@abs-consulting.com | |
URL | : | https://abs-consulting.com |
Date | : | November 04, 1997 |
This trigger script is expected to be called from the post-uncheckout, post-rmbranch and post-rmver trigger like so (or similar):
cleartool mktrtype -ele -all -post uncheckout,rmbranch,rmver -c "Automatically remove empty branches." -exec "{path}/perl {path}/RM_EMPTY_BRANCH.pl" REMOVE_EMPTY_BRANCH
If using ClearTrigger, you don't need to write ANY trigger code... Just turn on functionality bit (0) from the list of 25 Functionality Bits in the configuration file.
Read more on Policy without Triggers using ClearTrigger.