V0.4
Status: Draft
Last Change: 14-Jan-2004
SydongSun@hotmail.com
Copyright by SYDONGSUN
http://www.askguoyu.com
SydongSun@hotmail.com
ClearCaseForDeveloper.book
1 of 45
CLEARCASE
Green Green
Copyright Sydongsun 2004. All rights reserved. For internal use only.
2 of 45
SydongSun@hotmail.com
CLEARCASE
.6
1.1
Copyright Sydongsun 2004. All rights reserved. For internal use only.
. .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1
2.2
2.3
2.4
VOB . . . .
VIEW . . .
VIEW Config Spec .
Check In Check Out
.
.
.
.
.
.
.
.
.
. . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.7
.8
10
. . . . . . . . . . . . . . . . . . . . . . . 10
CLEARCASE . . . . . . . . . . . . . . . . . . . . . . 11
3.1 CLEARCASEClient . . . .
3.2 . . . . . . . . . . . . . . . . . .
3.3 Mount VOB . . . . . . . . . . . . . . . . . . .
3.4 CHECH INCHECH OUTVersion
3.5 VIEW Config Spec . . . .
3.6 . . . . . . . . . . . . . . . . . . .
3.6.1 label. . . . . . . .
3.6.2 branch . . . . . . .
3.7 . . . . . . . . .
3.8 . . . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
Tree . .
. . . .
. . . . . . . .
. . . .
. . . .
. . . .
. . . .
4.1
4.2
4.3
4.4
rmname/rmver/rmelem/mv
-- . . . . . . .
ClearCase . . . . .
. . . . . . . . . . . .
Sydongsun@hotmail.com
. .
. .
. .
. .
.
. .
.
.
.
.
.
.
.
.
.
. .
. .
. .
. .
.
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
. .
. .
. .
. .
.
. .
.
.
.
.
. .
. .
. .
. .
.
. .
.
.
.
.
. 40
.
.
.
.
.
.
.
.
. 11
. 11
. 13
. 14
20
. 25
26
28
31
34
40
43
44
44
3 of 45
CLEARCASE
Figure 2:
Figure 3:
Figure 4:
........................................ 11
Figure 5:
.......................... 12
Figure 6:
...... 12
Figure 7:
...................................................... 12
Figure 8:
Figure 9:
Figure 10:
VOB ...................................... 14
Figure 11:
VOB ........................ 15
Figure 12:
Figure 13:
Reserved
Figure 14:
Figure 15:
Figure 16:
................................ 17
Figure 17:
VOB
........................................................ 18
Figure 18:
Figure 19:
Figure 20:
.................................... 22
Figure 21:
.................................... 22
Figure 22:
23
Figure 23:
MyFile.c ........................... 24
Figure 24:
VOB ...................................... 25
Figure 25:
.......................... 26
Figure 26:
Figure 27:
Figure 28:
Figure 29:
Figure 30:
Figure 31:
dev_branch ..................... 35
4 of 45
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
Figure 1:
CLEARCASE
major_branch ... 36
Figure 33:
...... 37
Figure 34:
RELEASE1.00 ......................... 39
Figure 35:
CLEASRCASE
.......................................................... 40
Figure 36:
Figure 37:
ClearCase ....... 44
Copyright Sydongxun 2004. All rights reserved. For internal use only.
Figure 32:
SydongSun@hotmail.com
5 of 45
CLEARCASE
CLEARCASE CLEARCASE
PDF CLEARCASE
1.1
CLEARCASE
6 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
MVFSCHECH OUTCHECK IN
CLEARCASE
CLEARCASE
2.1
VOB
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
VOB
SQL
1 VOB VOB main
CLEARCASE
()
CLEARCASE Elementfile
(directory)
Figure 1: VOB VOB
SydongSun@hotmail.com
http://www.Askguoyu.com
7 of 45
CLEARCASE
2.2
VIEW
VOB VOB
VOB VOB
VOB
VOB
Oracle Oracle SQL
VIEW
VIEWCLEARCASE VIEW VOB
VIEW
Figure 2: VIEW VOB
Copyright Sydongsun 2004. All rights reserved. For internal use only.
VIEW VOB
CLEARCASE MVFS(Multi-Version File System) Windows VIEW
Windows VIEW
VOB Add to
Source Control VOB VIEW 2 VOB
VIEW
VOB VOB View Storage
8 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
CLEARCASE
View Storage Directory
CLEARCASE Windows
Windows CLEARCASECLEARCASE
SydongSun@hotmail.com
http://www.Askguoyu.com
9 of 45
CLEARCASE
2.3
Element * CHECHEDOUT
Element * /main/LATEST
CHECHEDOUT VOB Check Out
main
VOB
ClearCase
Check Out
Check In ClearCase VOB
10 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
2.4
CLEARCASE
CLEARCASE
CLEARCASE
VOB
3.1
CLEARCASEClient
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
Client
3.2
SydongSun@hotmail.com
http://www.Askguoyu.com
11 of 45
CLEARCASE
CLEARCASE
Figure 5:
Figure 6:
Copyright Sydongsun 2004. All rights reserved. For internal use only.
Figure 7:
12 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
CLEARCASE
CLEARCASE
7 Network ClearCase
ClearCase
ClearCase
Region VOB Region
7 Network Region Mount VOB Region
VOB ClearCase RegionNetwork 7
windows Region ClearCase Client
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
3.3
Mount VOB
SydongSun@hotmail.com
http://www.Askguoyu.com
13 of 45
CLEARCASE
CLEARCASE
3.4
14 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
CLEARCASE
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
CLEARCASE , check in
check out Check in Check out Checkout
Windows VOB
CLEARCASE
Figure 12: VOB Check Out ---
SydongSun@hotmail.com
http://www.Askguoyu.com
15 of 45
CLEARCASE
CLEARCASE
16 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
CLEARCASE
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
Check Out/Check In
CLEARCASE CLEARCASE
a.txt
Figure 16:
SydongSun@hotmail.com
http://www.Askguoyu.com
17 of 45
CLEARCASE
CLEARCASE
18 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
CLEARCASE
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
SydongSun@hotmail.com
http://www.Askguoyu.com
19 of 45
CLEARCASE
CLEARCASE
3.5
a.txt a.txt
a.txt
Check Out 1 a.txt
1 VIEW
CLEARCASE
VIEW VIEW Config Spec VIEW Config Spec
Element * CHECHEDOUT
Element * /main/LATEST
20 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
CLEARCASE
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
Checkout
main Add to Source Control
VOB VOB VOB Version Object Base
main check in
main
main
ConfigSpec
Element
*
\CC_TEST\train_folder\...
*.txt\CC_TEST\test.txt
REL2
REL2 .../mybranch/LATEST mybranch
()
/main/mybranch/LATEST
/main/testbranch/mybranch/LATEST
.../mybranch/LATEST
main
VOB
SydongSun@hotmail.com
http://www.Askguoyu.com
21 of 45
CLEARCASE
CLEARCASE
Figure 20:
Figure 21:
22 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
sysfuncRequest.doc DOCV1.00
main
stenphen stephen stephen_branch
stenphen sysfuncrequest.doc@@\main\stehpen_branch\1
sysfuncrequest.doc VOB
Version-Extended Pathname
CLEARCASE
CLEARCASE
b ( VOB
)
Config Spec
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
Figure 22:
Config Spec
View Config Spec
View Config Spec
CLEARCASE
SydongSun@hotmail.com
http://www.Askguoyu.com
23 of 45
CLEARCASE
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
24 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
CLEARCASE
CLEARCASE
3.6
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
VOB
VOB (Element )
metadata()
SydongSun@hotmail.com
http://www.Askguoyu.com
25 of 45
CLEARCASE
CLEARCASE
3.6.1
label
ClearCase
V2.7.1 -c
.
V2.7.1 -recurse
mklabel -replace V2.7.1 hello.c@@\main\4 hello.c@@\main\4
V2.7.1 -replace
\main\4
26 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
VOB
CLEARCASE
CLEARCASE
CLEARCASE
CLEARCASE Windows
CLEARCASE GUI
CLEARCASE
Windows
Cleartool man Cleartool
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
CLEARCASE
CLEARCASE
ProjectDir
VOB
FOR_NightBuild
ProjectDir CheckOut ProjectDir
Z:\TRYIT_VOB\ProjectDir Z:
cleartool find \TRYIT_VOB\ProjectDir -exec "cleartool checkout -nc %CLEARCASE_PN%"
Find find <path> <rule> <action>
rule ClearCase \TRYIT_VOB\ ProjectDir VOB
TRYIT_VOB ProjectDir
ProjectDir
cleartool find \TRYIT_VOB\ProjectDir -exec "cleartool checkin -identical -nc %CLEARCASE_PN%"
ProjectDir FOR_NightBuild
SydongSun@hotmail.com
http://www.Askguoyu.com
27 of 45
CLEARCASE
CLEARCASE
TRYIT_VOBV3.0
VOBV3.0BaseForV4.0
V4.0
find \TRYIT_VOB -version "(lbtype(V3.0))" -exec "cleartool mklabel BaseForV4.0
%CLEARCASE_XPN%"
Check In
checkin -nc -identical *.*
Doc_LATEST
mklabel -replace Doc_LATEST *.*
Doc_LATEST
cleartool lsvtree -g *.*
*.*
(*.doc) doc .
3.6.2
branch
label
Bug
VOB Explore Types branch type
ClearCase
Config Spec mkbranch
28 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
Z:\TRYIT_VOB\DocDir
FrameMaker
ChoutOut CheckIn
Doc_LATEST
Z:\TRYIT_VOB\DocDir
Z:\TRYIT_VOB\DocDir ClearCase
Command Prompt Cleartool
Cleartool
CheckOut
checkout -nc *.*
CLEARCASE
CLEARCASE
Bug
BUG BUG
ClearCase
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
bugfix_branch
hello.c main bugfix_branch
mkbranch -nc bugfix_branch *.c.c
bugfix_branch
ClearCase
ClearCase
ClearCase
Config Spec
Config Spec -mkbranch
Config Spec
element * CHECKEDOUT
element * /main/dev_branch/LATEST
element * /main/LATEST -mkbranch dev_branch
element * /main/LATEST
Checkout
main dev_branch
Check Out
dev_branch Check Out
Config Spec /main/dev_branch Check
Out Check Out Check In /main/dev_branch
dev_branch
SydongSun@hotmail.com
http://www.Askguoyu.com
29 of 45
CLEARCASE
CLEARCASE
element * CHECKEDOUT
element * /main/forchina_branch/LATEST
element * VER1.00 -mkbranch forchina_branch
element * /main/LATEST
main
label
VOB VOB VER1.00 label type (VOB label VOB
label ) VOB label Global
VOB VOB label
Copyright Sydongsun 2004. All rights reserved. For internal use only.
element * CHECKEDOUT
element \TRYIT_VOB\... .../ sydongsun_branch /LATEST
element \TRYIT_VOB\... /main/LATEST -mkbranch sydongsun_branch
element * /main/LATEST
VOB
VOB VOB
30 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
CLEARCASE
CLEARCASE
3.7
Merge BUG
bugfix_branch
dev_branch Merge
MyFile.c
Merge
Merge
Merge Merge to
Merge
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
Merge Merge
Merge
Merge
SydongSun@hotmail.com
http://www.Askguoyu.com
31 of 45
CLEARCASE
CLEARCASE
32 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
CLEARCASE
CLEARCASE
Merge VOB
filedirectoryhtml.
directory type Html (html type) Html
Merge
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
SydongSun@hotmail.com
http://www.Askguoyu.com
33 of 45
CLEARCASE
CLEARCASE
3.8
ShenZhou10
VOB COM_VOB
FOR_NIGHTBUILD
DO_VOB VOB
ROM
Main
major_branch
dev_branch VOB
ClearCase Type Explorer major_branch dev_branch
34 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
Config Spec
Config Spec
Working On a Team
Config Spec
CLEARCASE
( 21 !)
CLEARCASE
Team Leader
CLEARCASE
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
Config Spec
element * CHECKEDOUT
element * .../major_branch/dev_branch/LATEST
element * .../major_branch/LATEST -mkbranch dev_branch
element * /main/LATEST -mkbranch major_branch
element * /main/LATEST
ClearCase major_branch
dev_branch dev_branch
Figure 31: dev_branch
SydongSun@hotmail.com
http://www.Askguoyu.com
35 of 45
CLEARCASE
CLEARCASE
Check In
FOR_NIGHTBUILD
2.6.1 label
Config Spec
element * FOR_NIGHTBUILD
element * .../major_branch/dev_branch/LATEST
element * .../major_branch/LATEST
element * /main/LATEST
dev_branch
Freeze Merge major_branch INTETEST1()
Config Spec
element * INTETEST1
element * /main/major_branch/LATEST
element * /main/LATEST
Figure 32: major_branch
36 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
FOR_NIGHTBUILD
FOR_NIGHTBUILD
DO_VOB
CLEARCASE
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
Merge
Config Spec major_branch
Config Spec VOB ClearCase---Command
Prompt
cleartool> findmerge -all -element (brtype(dev_branch)) -fver \main\major_branch\dev_branch\LATEST merge -whynot -c "for merger intergate testing"
dev_branch
\main\major_branch\dev_branch\LATEST major_branch
whynot -c "for merger intergate testing"
CheckIn
major_branch INTETEST1
2.6.1 label
BUG
BUG
dev_branch BUG Freezed Merge
major_branch . Merger_branch
Merge main RELEASE1.00
Figure 33:
SydongSun@hotmail.com
http://www.Askguoyu.com
37 of 45
CLEARCASE
CLEARCASE
dev_branch
major_branch
FOR_NIGHTBUILD
major_branch dev_branch
INTETEST1INTETEST2. major_branch
BUG
2.6.2 branch
Merge
element * CHECKEDOUT
element * .../major_branch_rel2.00/dev_branch_rel2.00/LATEST
element * .../major_branch_rel2.00/LATEST -mkbranch dev_branch_rel2.00
element * RELEASE1.00 -mkbranch major_branch_rel2.00
element * /main/LATEST -mkbranch major_branch_rel2.00
element * /main/LATEST
RELEASED1.00 major_branch_rel2.00
major_branch_rel2.00 branch_rel2.00
Release2.00
RELEASE1.00 main major_branch_rel2.00
CheckOut hello.c
38 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
BASELINE
RELEASE1.00
BUG RELEASE2.00
RELEASE1.00
CLEARCASE
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
ShenZhou10
CLEARCASE
main dev_branch
SydongSun@hotmail.com
http://www.Askguoyu.com
39 of 45
CLEARCASE
CLEARCASE CLEARCASE
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
CLEARCASE
CLEARCASE
4.1
40 of 45
rmname/rmver/rmelem/
http://www.Askguoyu.com
SydongSun@hotmail.com
CLEARCASE
mv
CLEARCASE
rm
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
rmname
Removes the name of an element or VOB symbolic link from a directory version
A name can be removed from a directory only if that directory is checked out, Rmname
does not delete elements themselves, only references to elements. Use rmelem (very
carefully) to delete elements and all their names from their VOBs.
rmname c.txt
c.txt
checkout rm rmname rmname
clearcase rmname c
c c
rmver
Removes a version from the version tree of an element
rmver deletes one or more versions from their elements, his command destroys
information irretrievably. Using it carelessly may compromise your organization's
ability to support old releases.
cleartool rmver c.txt c.txt
rmelem
Removes an element or symbolic link from a VOB
The rmelem command completely deletes one or more elements or symbolic links, This command
destroys information irretrievably. Using it carelessly may compromise your organization's ability to
support old releases. In many cases, it is better to use the rmname command.
vob
Clearcase
rmname Trigger
mv
Moves or renames an element or VOB link
SydongSun@hotmail.com
http://www.Askguoyu.com
41 of 45
CLEARCASE
42 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
Copyright Sydongsun 2004. All rights reserved. For internal use only.
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
4.2
--
ClearCase
ClearCase VOB
element type
VOB TestDir
Windows
CheckOut/CheckIn
TestDir
ClearCase_Exporer
Delete Clearcase rmname
TestDir TestDir
TestDir CheckOut
TestDir
SydongSun@hotmail.com
http://www.Askguoyu.com
43 of 45
CLEARCASE
4.3
ClearCase
ClearCase ClearCase
Running
Running
ClearCase
ClearCase
Copyright Sydongsun 2004. All rights reserved. For internal use only.
4.4
VOB CM
44 of 45
http://www.Askguoyu.com
SydongSun@hotmail.com
CLEARCASE
Copyright Sydongsun 2004. All rights reserved. For internal use only.
Copyright Sydongsun 2004. All rights reserved. For internal use only.
.
SydongSun@hotmail.com
45 of 45