Clearcase error adding file

旧巷老猫 提交于 2019-12-19 11:21:04

问题


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 .

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


回答1:


As mentioned in this thread (and already commented):

You'll need a rule that selects /main/0 or /main/LATEST

/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


来源:https://stackoverflow.com/questions/29014040/clearcase-error-adding-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!