Where do new elements appear when mkelem is used?

为君一笑 提交于 2019-12-06 20:06:20

When I make a new element I know it goes along with the rule /main/LATEST.

Yes, meaning it is created in the /main branch, not in the BRANCH branch.
It would be created in the BRANCH branch only if:

  • it was not a new element
  • it had a label on it (matching the baseline name)

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:

cleartool find -type f -version "version(/main/1)&&!version(/main/2)" -print

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

element * CHECKEDOUT
element * .../BRANCH/LATEST
element * baseline -mkbranch(BRANCH)
element * /main/0 -mkbranch(BRANCH)  <=====
element * /main/LATEST
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!