|
Set to the GROUP_usa_view
|
|
1. Make a label type called LABEL1.
cleartool mklbtype -c "Release 1 Label" LABEL1
|
|
2. Using cleartool or multitool describe, get a long description of the label type. How is it mastered?
cleartool describe -l lbtype:LABEL1
(The label is mastered by replica GROUP_usa.)
|
|
3. Export the updates to your GROUP_europe replica.
multitool syncreplica -export -fship GROUP_europe
|
|
Set to the GROUP_europe_view
|
|
4. List the label types declared in the VOB.
cleartool lstype -kind lbtype
|
|
5. Import the update packet, using the -receive option.
multitool syncreplica -import -receive
|
|
6. List the label types now declared in the VOB.
cleartool lstype -kind lbtype
|
|
7. Apply LABEL1 to a version of hello.c. (cleartool mklabel LABEL1 hello.c). What happens?
cleartool mklabel LABEL1 hello.c
(You are unable to add this label because replica GROUP_usa is master of LABEL1.)
|
|
Set to the GROUP_usa_view
|
|
8. At the GROUP_usa replica use chmaster to transfer mastership of label type LABEL1 to your GROUP_europe replica.
multitool chmaster GROUP_europe lbtype:LABEL1
|
|
9. Export the updates to your GROUP_europe replica.
multitool syncreplica -export -fship GROUP_europe
|
|
10.Get long description of LABEL1. cleartool describe –long lbtype:LABEL1
(LABEL1 is now mastered by GROUP_Europe)
|
|
Set to the GROUP_europe_view
|
|
11.Import the update. Use the -receive option.
multitool syncreplica -import -receive
|
|
12.Get a long description of the label type LABEL1. Where is it mastered now?
cleartool describe -l lbtype:LABEL1
(Mastership now belongs to the GROUP_europe replica.)
|
|
13.Apply LABEL1 to a version of hello.c.
cleartool mklabel LABEL1 hello.c
|
|
Set to the GROUP_usa_view
|
|
14.At the GROUP_usa replica, make a label type, LABEL2 with the following specifications:
· Make it shared
· Allow it to be used once-per-branch
cleartool mklbtype -shared -pbranch -c "Label for Release 2" \ LABEL2
|
|
15.Export the update to the GROUP_europe replica.
multitool syncreplica -export -fship GROUP_europe
|
|
Set to the GROUP_europe_view
|
|
16.At your GROUP_europe replica, import the update packet using the -receive option.
multitool syncreplica -import -receive
|
|
17.List the label types in the VOB.
cleartool lstype -kind lbtype
|
|
18.Apply LABEL2 to hello.c@@/main/LATEST. What happens? Why?
cleartool mklabel LABEL2 hello.c@@/main/LATEST
(You are unable to add label because replica GROUP_usa is master of the main branch)
|
|
19.Apply LABEL2 to hello.c@@/main/europe_branch/LATEST. What happens? Why?
cleartool mklabel LABEL2 hello.c@@/main/europe_branch/LATEST
(This branch is owned by replica GROUP_europe and the label is shared, allowing this replica to use it.)
|
|
Set to the GROUP_usa_view
|
|
20.At the GROUP_usa replica, apply LABEL2 to hello.c@@/main/LATEST.
cleartool mklabel LABEL2 hello.c@@/main/LATEST
|
|
21.Open a graphical version tree browser on hello.c. Why doesn't the LABEL2 show up on "europe_branch"?
cleartool lsvtree -graphical hello.c
(The label doesn't show up on europe_branch because you haven't received the last update packet from the GROUP_europe replica.)
|
|
Set to the GROUP_europe_view
|
|
22.You next want to inform GROUP_usa about the changes that you've made in GROUP_europe. From your GROUP_europe replica, export an update packet to GROUP_usa replica.
multitool syncreplica -export -fship GROUP_usa
|
|
Set to the GROUP_usa_view
|
|
23.At GROUP_usa replica, import the update packet.
multitool syncreplica -import -receive
|
|
24.Open a graphical Version Tree Browser on hello.c again. Does the label show up now? cleartool lsvtree –graphical hello.c
(Yes. The update packet was successfully received.)
|
|
25.Create a label type LABEL3.
cleartool mklbtype -c "Label for Release 3" LABEL3
|
|
26.Attach the label LABEL3 to hello.c@@/main/LATEST. Export an update packet to your GROUP_europe replica.
cleartool mklabel LABEL3 hello.c@@/main/LATEST
multitool syncreplica -export -fship GROUP_europe
|
|
Set to the GROUP_europe_view
|
|
27.At the GROUP_europe replica, create a label type LABEL3.
cleartool mklbtype –c "Release 3 for Second" LABEL3
(MultiSite warns about a name conflict.)
|
|
28.Attach LABEL3 to some version of hello.c on the europe_branch.
cleartool mklabel LABEL3 hello.c
|
|
29.Import your update packet. What happens?
multitool syncreplica -import -receive
|
|
30.List all label types that are now defined in this replica.
cleartool lstype -l -kind lbtype
|
|
31.Export an update packet back to the GROUP_usa replica.
multitool syncreplica -export -fship GROUP_usa
|
|
Set to the GROUP_usa_view
|
|
32.At GROUP_usa replica, import the update packet using the -receive option. What happens?
multitool syncreplica -import -receive
(MultiSite warns about a name conflict.)
|
|
33.List all label types that are now defined in this replica.
cleartool lstype -kind lbtype
|
|
34.Is LABEL3 the same type declaration in both VOBs?
No. Both replicas have definitions of LABEL3, but the definitions are not the same.
|
|
35.Now fix it. Rename LABEL3. Call it FIRST_LABEL3. Export your change to the GROUP_europe replica.
cleartool rename lbtype:LABEL3 FIRST_LABEL3
multitool syncreplica -export -fship GROUP_europe
|
|
Set to the GROUP_europe_view
|
|
36.Import the update.
multitool syncreplica -import -receive
|
|
37.Open a cleartool lsvtree -graphical on hello.c. How does the old LABEL3 on /main/LATEST look?
cleartool lsvtree hello.c
|