Monday, June 11, 2007

Access UCM with a base ClearCase view

Sometimes, it maybe desirable to use a base ClearCase view to access a UCM baseline. This may happen when the code is read-only and you want to save the effort of joining the project and managing the streams, such as for build purpose.

The config spec looks like the following.

element /vobs/MyVob /main/0 –nocheckout
element * baseline_07_13_2007 –nocheckout

The first line is there for retrieving the vob root, because the vob root will not get labeled when creating the baseline.

4 comments:

  1. Mmmm... The two lines should be flipped (at least in a multi-component VOB). Otherwise, /main/0 version of all subdirectories are selected and they contain no data.

    Now, I am confused as to how /main/0 of the VOB root can have some contents... When adding directories to VOB root, you must checkout the root, add the directories, then check back in, making /main/1 (or greater). Is the VOB root special such that /main/0 always selects all directories underneath?

    ReplyDelete
  2. Okay, I see now. In a Multi-component VOB, all components are cataloged within the /main/0 version of the VOB. This way the baselines need only to be applied to the component root.

    ReplyDelete