Unix Command:
clearfsimport [ -preview ] [ -follow ] [ -recurse ] [ -rmname ] [-comment comment ] [ -mklabel label ] [ -nsetevent ] [ -identical] [ -master ] [ -unco ] source-name [ . . . ] target-VOB-directory
Example:
clearfsimport -preview -comment "add your comments" -recurse -nsetevent /home/sw/wmp068/new_dir /vobs/project_x
In this example, using preview it will show you what files/directories it would create by importing the directory new_dir into /vobs/project_x
To get the import really done run it again without -preview option.
IMPORTANT: You must run this command in a view, and it will create the branches for the elements being imported following the rules defined in your config.spec. If you have -mkbranch directives in your config.spec the files/directories will be created in these branches.
Options used in the example:
-preview
Previews the import, listing all elements that the import would add or change, as well as any checkouts that would conflict with imports, but does not import anything.
-recurse
Descends recursively into all source-name arguments that are directories.
-nsetevent
You must always use this option if you are not the VOB owner. Specifies that event records and historical information for new elements and element versions show the user who executed clearfsimport and the date of execution, not the original data associated with the sources. This option creates element versions that are newer than the original sources; thus, the clearfsimport operation is not restartable after you have invoked it with this option.
–comment comment
Attaches the specified comment instead of the default comment to each element version checked in to the VOB.
本文详细介绍了ClearCase中的ClearFSImport命令用法及其参数选项,包括预览导入、递归目录、设置事件记录等。通过实例展示如何将本地文件夹导入到版本控制库中,并解释了各选项的功能。

被折叠的 条评论
为什么被折叠?



