Product | Command type |
---|---|
ClearCase | cleartool subcommand |
ClearCase LT | cleartool subcommand |
MultiSite | multitool subcommand |
Note: To move or change the name of a ClearCase or ClearCase LT file or directory element, use the mv command.
The rename command renames a ClearCase, ClearCase LT or MultiSite object—for example, a VOB storage pool, a replica, or a type object such as a label type.
If you are renaming a pool, no data container in the pool is affected.
If you are renaming a replica, the name change is propagated to other replicas, through the standard synchronization mechanism. This command is valid only at the replica that masters the VOB-replica object being renamed.
If you are renaming a type object, all instances of the type object, throughout the VOB, are also renamed. If the type object is global, all local copies of the type object are renamed. For example, if you rename a branch type from bugfix to rel1.3_fixes, all existing bugfix branches are also renamed to rel1.3_fixes. (For more information about global type renaming, see the Administrator's Guide.)
Restriction: A VOB cannot contain a branch type and a label type with the same name.
Note: Do not use this command to rename an instance of a type, for example to rename a particular branch of a particular element. For that purpose, use chtype.
An error occurs if one or more of these objects are locked: VOB, object.
For more information about object selectors, see the cleartool reference page.
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.
cmd-context lsvtree –short util.c
util.c@@\main\1
util.c@@\main\rel2_bugfix
util.c@@\main\rel2_bugfix\1
util.c@@\main\3
cmd-context rename brtype:rel2_bugfix brtype:r2_maint
Renamed type from "rel2_bugfix" to "r2_maint".
cmd-context lsvtree –short util.c
util.c@@\main\1
util.c@@\main\r2_maint
util.c@@\main\r2_maint\1
util.c@@\main\3
cmd-context describe msg.c hello.c | grep 'element type'
element type: text_file
element type: text_file
cmd-context rename eltype:text_file eltype:source_file
cleartool: Warning: Renaming a predefined object!
Renamed type from "text_file" to "source_file".
cmd-context describe msg.c hello.c | grep 'element type'
element type: source_file
element type: source_file
Copyright© 2003 Rational Software. All Rights Reserved.