The difference between rmname rmver rmelem mv [transfer]

 

rmname rmver rmelem mv These ClearCase commands are more important, so they are listed:

rmname
Removes the name of an element or VOB symbolic link from a directory version
A name can be removed from a directory only if that directory is checked out, Rmname
does not delete elements themselves, only references to elements. Use rmelem (very
carefully) to delete elements and all their names from their VOBs.
If you use the command line in a directory under the view: rmname c.txt then the c.txt file will not appear in the version of the directory
, and the directory object's Previous versions had this file. This command must be
checked out of the directory before using this command. rm is the abbreviation of rmname. It is recommended that you use rmname explicitly when using it.
In clearcase, directories and files have the same status, and both have the concept of version. If rmname c is used to delete the directory element c in the directory of the current
view , the elements in the c directory also become inaccessible.


rmver Removes
a version from the version tree of an element
rmver deletes one or more versions from their elements, his command destroys
information irretrievably. Using it carelessly may compromise your organization's
ability to support old releases.
If you use the command in the view's catalog: cleartool rmver c.txt will directly delete the latest version of the c.txt
file . If you want to delete an intermediate version of an object (file or directory), you can use the
rmver -version \main \1 c.txt statement to delete the \main\1 version of the c.txt file object.
In general , developers are strongly advised not to use the rmver command, as there is no harm in keeping all versions of an object in the database.
In case one day you find this version useful, or useful to others.


rmelem Removes
an element or symbolic link from a VOB
The rmelem command completely deletes one or more elements or symbolic links, This command
destroys information irretrievably. Using it carelessly may compromise your organization's ability to
support old releases. In many cases, it is better to use the rmname command.
This command removes element objects (files or directories) from the vob library. If you find that one day, you need this file
or directory, you will not be able to get it back. General developers should prohibit the use of this command, one of the
purposes is to be able to trace the historical version when we need it. And if you delete the element,
all versions attached to the element will no longer exist. Configure commands that administrators should be careful to use and developers should not use.
rmname is sufficient for your requirements. So configuration managers should use Trigger to limit the use of
this command by general developers.


mv
Moves or renames an element or VOB link
The version of the element will not be affected if the element is renamed or moved.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327066594&siteId=291194637