Why clearfsimport command adds file to source control with a size zero?

非 Y 不嫁゛ 提交于 2020-01-23 18:00:38

问题


I use clearfsimport command the file is added to source control but:

  • the file size becomes zero and
  • keep files are created.

In the version tree of ClearCase, the version number of that file is zero.

How can I fix this in order for the clearfsimport to work properly?


回答1:


You need to make sure, when using clearfsimport (as in "How can I use ClearCase to “add to source control …” recursively?")

  • that your source is different from your destination

    clearfsimport -preview -rec -nset c:\sourceDir\* m:\MyView\MyVob\MyDestinationDirectory
    

(Here I use the -preview to check first what the import would do)

  • that your destination config spec allows you to create new files (in the current branch or in the new one)

    element * CHECKEDOUT
    element * /main/LATEST
    
    or
    
    element * CHECKEDOUT
    
    element * .../newBranch/LATEST
    element * /main/0 -mkbranch newBranch
    element * /main/LATEST -mkbranch newBranch
    


来源:https://stackoverflow.com/questions/24772997/why-clearfsimport-command-adds-file-to-source-control-with-a-size-zero

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