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.