The mv command changes the name or location of an element or VOB symbolic link. For a file element that is checked out to your view, it relocates the checked-out version, also. (That is, it moves the view-private file with the same name as the element.) If the version is checked out to another view, it issues a warning:
cleartool: Warning: Moved element with checkouts to "overview.doc";
view private data may need to be moved.
The mv command can move an element only within the same VOB. To move an element to another VOB, use the relocate command.
When you move a file element in a snapshot view, only the to/from path names you specify are updated in the view. If the view contains multiple copies of the element (because VOB symbolic links or hard links exist), the copies are not updated. To update the copies, you must use the update command.
If the move operation would overwrite a writable file or directory subtree containing writable files, mv renames the files to filename.renamed.
The UNIX system and Linux 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 system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.
cmd-context mv hello.c hello_1.c
Moved "hello.c" to "hello_1.c".
cmd-context mv *.c src
Moved "cm_add.c" to "src/cm_add.c".
Moved "cm_fill.c" to "src/cm_fill.c".
Moved "convolution.c" to "src/convolution.c".
Moved "hello.c" to "src/hello.c".
Moved "hello_old.c" to "src/hello_old.c".
Moved "messages.c" to "src/messages.c".
Moved "msg.c" to "src/msg.c".
Moved "util.c" to "src/util.c".
cmd-context mv messages.c msg.lnk
Moved "messages.c" to "msg.lnk".
cmd-context ls -long msg.lnk
symbolic link msg.lnk --> msg.c