Is it possible to rename a clearcase view ? If yes how to do it.
I usually give view name based on fix or enhancements that I would make in that view. Once complete I end up reusing that view for some other task. With other SCMs I do not have any problem, I understand based on its changes to the build tree. The clearcase very slow, if I have to know by change set it will take me 2-5 mins.
A ClearCase view selects a specific set of file and directory versions from one or more VOBs so that you can load them, as ordinary files and folders, into a directory on your computer. This directory is called the view's copy area.
A VOB (versioned object base) is a permanent data repository that stores information that you have placed under Rational ClearCase® source control. A VOB stores the history of all the changes to your files. A view is a workspace where you make changes to your files.
For a snapshot view, you can rename the root directory safely.
But for any view, (snapshot or dynamic), check cleartool mkview -view -replace
. It should allow you to replace a tag, effectively renaming your view.
Make sure your view is stopped first (cleartool endview -server yourView
)
-rep/lace
Replaces an existing tag registry entry with a new entry. (No error occurs if the tag does not exist.)
You can use this option to change the tag comment and access paths.
You cannot use-replace
to change an existing tag's name; to do this, delete the tag withrmtag
and then usemktag
.
The last part actually points out the need to remove and then recreate the tag associated to your view.
Make sure to cleartool lsview -l -full -pro yourView
first, in order to get all the parameters you will need when recreating the tag with the new name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With