问题描述
如何将目录及其内容从本地文件系统复制到VOB(源代码控制)
How to Copy the directory and its contents from local file system to VOB (Source control)
我知道有命令( mkdir
, mkelem
)创建目录,元素并一个接一个地复制文件。
但我想知道
I know there are commands (mkdir
, mkelem
) to create directory , elements and copy the files one by one.
But I would like to know is there any easy way to do this as there are thousands of sub directories and files inside parent directory?
推荐答案
是的,您可以使用 ,正是为此而制作的。
Yes: you can use clearfsimport
, which is made precisely for that.
它将执行 mkdir
和 cleartool mkelem
(或 cleartool checkout
)在现有版本化元素之上的新版本)
It will do the mkdir
, and cleartool mkelem
(or cleartool checkout
if you import new versions on top of existing versioned elements)
另请参阅 :
clearfsimport -preview -rec -nset c:\sourceDir\* m:\MyView\MyVob\MyDestinationDirectory
关于 clearfsimport
此处使用的选项,请参阅 。
About the clearfsimport
options used here, see "Creating a new subdirectory structure in ClearCase?".
这篇关于Cleartool命令将目录及其内容从本地文件系统复制到VOB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!