为什么clearfsimport命令将文件添加到大小为零的源代码控制? [英] Why clearfsimport command adds file to source control with a size zero?
问题描述
我使用 clearfsimport
命令将文件添加到源代码控制,但
I use clearfsimport
command the file is added to source control but:
- 文件大小变为零,并且创建了
- 保留文件。
在ClearCase的版本树中,该文件的版本号为零。
In the version tree of ClearCase, the version number of that file is zero.
如何解决这个问题,以便 clearfsimport
正常运作?
How can I fix this in order for the clearfsimport
to work properly?
推荐答案
您需要确保在使用clearfsimport时(如如何使用ClearCase递归添加到源代码管理...)
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
-preview首先检查导入将做什么)
(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
这篇关于为什么clearfsimport命令将文件添加到大小为零的源代码控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!