Cleartool command to copy the directory and its contents from local file system to VOB

↘锁芯ラ 提交于 2019-12-01 11:10:23

问题


How to Copy the directory and its contents from local file system to VOB (Source control)

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?


回答1:


Yes: you can use clearfsimport, which is made precisely for that.

It will do the mkdir, and cleartool mkelem (or cleartool checkout if you import new versions on top of existing versioned elements)

See also "How can I use ClearCase to “add to source control …” recursively?":

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

About the clearfsimport options used here, see "Creating a new subdirectory structure in ClearCase?".



来源:https://stackoverflow.com/questions/39367793/cleartool-command-to-copy-the-directory-and-its-contents-from-local-file-system

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