Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rename a view in clearcase

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.

like image 215
Kamath Avatar asked Jun 11 '12 14:06

Kamath


People also ask

What is a view in ClearCase?

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.

What is VOB and view in ClearCase?

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.


1 Answers

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 with rmtag and then use mktag.

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.

like image 174
VonC Avatar answered Sep 17 '22 12:09

VonC