Creates an element (if one does not exist) corresponding to each selected file or directory in a workspace subtree
Product | Command Type |
---|---|
Attache | command |
Platform |
---|
UNIX |
Windows |
The import command creates an element corresponding to each file or directory name in the workspace, if the element does not already exist in the VOB. For each file in the specified subtree, import checks to see whether an element of that name exists in the VOB. If not, import invokes mkelem on the file.
For checked-out directories, restrictions are the same as for checkout. For created elements, restrictions are the same as for mkelem.
CHECKOUT OF THE NEW ELEMENT. Default: mkelem checks out the new element. The file in the workspace becomes the checked-out version of the element. If -ci option is not specified, the local files are made writable.
SPECIFYING WHICH FILES TO EXCLUDE. Default: None.
CREATING NEW ELEMENT NAMES IN LOWERCASE. Default: In Windows 95 or Windows NT, the default is to create the filename as it exists in the workspace. In Windows 3.x, the default is to create all new element names in all lower-case by default.
EVENT RECORDS AND COMMENTS. Default: Creates one or more event records, with commenting controlled by your .clearcase_profile file (default: -cqe). See the comments reference page. Comments can be edited with chevent.
SPECIFYING THE FILES TO BE IMPORTED. Default: None.
The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
Import all .c files in your current working directory
cmd-context import *.c
Import all files excluding executables and dynamically linked libraries from the directory foo. The file ex_file contains the text "*.exe *.dll."
cmd-context import -exclude c:\users\jed\ex_file foo\*
Import all .c files in the workspace directory src and check them in after they are created
cmd-context import -ci src/*.c
Import all files in the workspace directory foo, creating foo in the VOB if it does not exist.
cmd-context import foo
attache_command_line_interface, checkout, mkelem, wildcards
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |