我无法将新文件添加到 VOB。我尝试了 Windows 上的 UI 上下文菜单以及cleartool 命令行实用程序。
cleartool> checkout .
Checkout comments for ".":
Created branch "BRANCH_NAME" from "." version "\main\BASE_BRANCH_NAME\1".
Checked out "." from version "\main\BASE_BRANCH_NAME\BRANCH_NAME\0".
cleartool> mkelem -ci -nc NewFile.h
Created element "NewFile.h" (type "text_file").
cleartool: Error: Unable to check out "NewFile.h".
cleartool> uncheckout .
描述-l。显示该文件夹具有 rwx 权限。我究竟做错了什么?为什么我无法添加文件?
正如中提到的这个线程 https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014091473(并且已经评论过):
您需要一个选择规则/main/0
or /main/LATEST
/main/0
is the 占位符版本 https://stackoverflow.com/a/5309714/6309为添加到源代码管理的任何新元素创建。
例如参见“如何在 ClearCase 中创建分支 https://stackoverflow.com/a/2110226/6309" or "如何在 Clearcase 中最好地进行分支? https://stackoverflow.com/a/997607/6309” 有关允许添加到分支中的源代码管理的配置规范的示例。
element * CHECKEDOUT
element * .../aBranch/LATEST
element * STARTING_LABEL -mkbranch aBranch
# selection rule for new "added to source control" file
element * /main/0 -mkbranch aBranch
element * /main/LATEST
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)