My config spec is set up as:
element * CHECKEDOUT
element * .../BRANCH/LATEST
element * baseline -mkbranch(BRANCH)
element * /main/LATEST
When I make a new element I know it goes along with the rule /main/LATEST. When I do a cleartool ls I can find the new element, but how can I find the new element with a cleartool find command.
Also this is assuming the new element has been checked in and all existing elements that where checked out under the branch have been checked in. The new element does not yet have any labels.
I've been trying:
cleartool find -avobs -branch 'brtype(BRANCH)' -version 'version(.../main/LATEST)'
I believe this only searches the branch and have not been able to find new checked in elements this way.
Yes, meaning it is created in the
/main
branch, not in theBRANCH
branch.It would be created in the
BRANCH
branch only if:So your
find
query cannot find a new element, based on your current config spec.A new element would only have a
/main/1
and no/main/2
version:Note: if you wanted to add a new element on the branch
BRANCH
, your config spec would need to have another rule (as seen here):