The rename command renames a ClearCase 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 IBM Rational ClearCase Administrator's Guide.)
For more information about object selectors, see the cleartool reference page.
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 rename -c "make pool name clearer" \
pool:c_pool pool:c_source_pool
Renamed pool from "c_pool" to "c_source_pool".
cmd-context lspool –short
c_source_pool
cdft
ddft
do1
my_ctpool
sdft
cmd-context rename pool:do1 pool:do_staged
Renamed pool from "do1" to "do_staged".
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
cmd-context describe –aattr TESTED msg.cmsg.c@@\main\3
Attributes:
TESTED = "TRUE"
cmd-context rename attype:TESTED attype:QAed
Renamed type from "TESTED" to "QAed".
cmd-context describe –aattr QAed msg.cmsg.c@@\main\3
Attributes:
QAed = "TRUE"
cmd-context rename replica:paris paris_louvre
Renamed replica "paris" to "paris_louvre".