clearfsimport - Most useful clearcase command -- Posted by vinayak on Friday, February 1 2008
Converts file system objects to element versions

The clearfsimport command reads the specified file system source objects and places them in the target VOB. This command uses magic files to determine which element type to use for each element created. The source and target directories may not be the same; to create an element from a view-private object that already resides in the target directory, use mkelem

SYNOPSIS
UNIX only:
clearfsimport [ –preview ] [ –follow ] [ –recurse ] [ –rmname ]
[–comment comment ] [ –mklabel label ] [ –nsetevent ] [ –identical ]
[ –master ] [ –unco ] source-name [ . . . ] target-VOB-directory

Windows only:
clearfsimport [ –preview ] [ –recurse ] [ –rmname ]
[ –comment comment ] [ –mklabel label ] [ –nsetevent ]
[ –identical ] [ –master ] [ –unco ]
[ –downcase ] source-name [ . . . ] target-VOB-directory

clearfsimport -recurse -rmname -nsetevent -comment comment -unco [-preview] [-ident] [-downcase]

The optional arguments have the following meanings:
-preview shows you what will happen without doing anything. It's recommended to run with that first.
-ident is not needed if this is not an upgrade.
-downcase may be useful if running on Windows. Run ct man clearfsimport for more documentation.

Go the /vobs/directory/
Run command
$ clearfsimport -recurse -rmname -nsetevent -c "files to be checkedin" -unco -ident ~/tmp/vinayak .
Validating directory ".".
Validating directory "./vinayak".

The above command creates vob elements for all files in the local filesystem vinayak directory. For example: /vobs/directory/vinayak/...

[Edit] Home
If this information is helpful to you then please click here and post one simple tip that you know. Share your knowledge!