添加文件时出现Clearcase错误

时间:2015-03-12 15:36:45

标签: clearcase cleartool

我无法向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权限。我究竟做错了什么?为什么我无法添加文件?

1 个答案:

答案 0 :(得分:1)

this thread中所述(已经评论过):

  

您需要一个选择/main/0/main/LATEST

的规则

/main/0是为添加到源代码管理的任何新元素创建的 placeholder version
有关配置规范的示例,请参阅“how to create a branch in ClearCase”或“How best to branch in Clearcase?”,以便在分支中添加源控件。

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