Clearcase 添加文件时出错
Clearcase error adding file
我无法向 VOB 添加新文件。我在 windows 上尝试了 UI 上下文菜单以及 cleartool 命令行实用程序。
cleartool> checkout .
Checkout comments for ".":
Created branch "BRANCH_NAME" from "." version "\main\BASE_BRANCH_NAME".
Checked out "." from version "\main\BASE_BRANCH_NAME\BRANCH_NAME[=10=]".
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 权限。我究竟做错了什么?为什么我无法添加文件?
如 this thread 中所述(并已评论):
You'll need a rule that selects /main/0
or /main/LATEST
/main/0
是为添加到源代码管理的任何新元素创建的 placeholder version。
有关允许添加到分支中的源代码管理的配置规范示例,请参见例如“how to create a branch in ClearCase" or "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
我无法向 VOB 添加新文件。我在 windows 上尝试了 UI 上下文菜单以及 cleartool 命令行实用程序。
cleartool> checkout .
Checkout comments for ".":
Created branch "BRANCH_NAME" from "." version "\main\BASE_BRANCH_NAME".
Checked out "." from version "\main\BASE_BRANCH_NAME\BRANCH_NAME[=10=]".
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 权限。我究竟做错了什么?为什么我无法添加文件?
如 this thread 中所述(并已评论):
You'll need a rule that selects
/main/0
or/main/LATEST
/main/0
是为添加到源代码管理的任何新元素创建的 placeholder version。
有关允许添加到分支中的源代码管理的配置规范示例,请参见例如“how to create a branch in ClearCase" or "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