Clearcase错误添加文件 [英] Clearcase error adding file

查看:108
本文介绍了Clearcase错误添加文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将新文件添加到VOB。我尝试了Windows上的UI上下文菜单以及cleartool命令行实用程序。

I cannot add a new file to the VOB. I tried both UI context menu on windows as well as cleartool command line utility.

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

describe -l . shows me that the folder has rwx permissions. What am I doing wrong? Why I can't add file?

推荐答案

此线程(且已注释):


您需要一个选择 / main / 0 / main / LATEST的规则

/ main / 0 是<为添加到源代码管理中的任何新元素创建的strong> 占位符版本

请参见例如 如何在ClearCase中创建分支如何最好地在Clearcase中分支?以配置规范为例,允许在分支中添加源代码控制。

/main/0 is the placeholder version created for any new element added to source control.
See for instance "how to create a branch in ClearCase" or "How best to branch in Clearcase?" for an example of a config spec allowing to add to source control in a branch.

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

这篇关于Clearcase错误添加文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆