Configspec
The config spec tells clearcase what files from what branches you want to look at eg:
element * CHECKEDOUT
element * .../mcs_new_branch/LATEST
element * .../mcs_r1_0/LATEST -mkbranch mcs_r2_0
element * /main/LATEST -mkbranch mcs_r2_0
How is the ConfigSpec read??
Using:
element * CHECKEDOUT (1)
element * .../mcs_new_branch/LATEST (2)
element * .../mcs_1_0/LATEST -mkbranch mcs_new_branch (3)
element * /main/LATEST -mkbranch mcs_new_branch (4)
(1) for any element, first look at checkedout one (if it exists), then
(2) look at branch mcs_new_branch/LATEST then
(3) look at .../mcs_1_0/LATEST, if found there check in any mods to mcs_new_branch (ie. make the element at this branch)
(4) look at .../main/LATEST, if found there check in any mods to mcs_new_branch
Create a label
To create a label called
MY_LABEL, within the current view:
mklabel -replace -comment "optional comment" MY_LABEL /location/of/my/view/on/filesystem
Set Configspec to use a label
To get your view to use a label:
element * CHECKEDOUT
element * .../mcs_new_branch/LATEST
element * .../mcs_1_0/MY_LABEL -mkbranch mcs_new_branch
element * /main/LATEST -mkbranch mcs_new_branch
This config spec will now pull back the labelled version for mcs_1_0.