Professional Documents
Culture Documents
CLEARCASE
VERSION-CONTROL AND
CONFIGURATION MANAGEMENT SOFTWARE. IT HAS A RICH SET OF SUBCOMMANDS THAT CREATE, MODIFY,
AND MANAGE THE INFORMATION IN
VOBS
AND VIEWS.
Clearcase View
Each developer must create a view to work in Clearcase. View can be named using the following
information: <username_project_task> or any other name which is preferable to the user. There is
no hard rule to have a specific view name.
The Clearcase view creation script is located at /auto/edatools/cisco/bin/cc_mkview.
Usage: cc_mkview -t <view tag> <view space directory> -s blr-atg-lnx
Example: cc_mkview -t skb_dv /ws/skarapur/ -s blr-atg-lnx
This will create the view skb_dv under /ws/skarapur/skb_dv/
cleartool co
cleartool mkelem
cleartool ci
cleartool ci
Config Specs
Every Developer is responsible for maintaining his or her config spec. A view's config spec
(configuration specification) contains an ordered set of rules for selecting versions of elements.
The view's associated view_server process populates a view with versions by evaluating the
config spec rules. The basic config spec may look like this:
element * CHECKEDOUT
#element /vob/sse/asic/shared/ver/cvc/uvmpl/... /main/LATEST
include /vob/sse/lib/release/skybolt/chip.cs@@/main/221
COMMAND LINE
USAGE
CLEARTOOL ENDVIEW
<COMMON_VIEW>
Configspec commands
CLEARTOOL CATCS
CLEARTOOL catcs -tag
<view_tag>
CLEARTOOL EDCS
CLEARTOOL SETCS -DEFAULT
CLEARTOOL RESERVE
<FILE-NAME>
cleartool LSCO
cleartool LSCO R
CLEARTOOL
CLEARTOOL
TYPE>
CLEARTOOL
CLEARTOOL
RMBRANCH
RMTYPE -RMALL -BRTYPE
<BRANCH-
CHTYPE
MERGE
CLEARTOOL FINDMERGE
CLEARTOOL LSTYPE -KIND BRTYPE
CLEARTOOL LSTYPE -KIND BRTYPE -INVOB
</VOB/VOB-NAME>
CLEARTOOL LSVTREE -ALL *
CLEARTOOL LSVTREE <FILE-NAME>
cleartool FIND ./ -BRANCH 'BRTYPE(<BRANCHNAME>)' -PRINT
<LABEL_NAME>
CLEARTOOL
CLEARTOOL
CLEARTOOL
NAME.EXT>
CLEARTOOL
MKLABEL -REPLACE
<NEW_LABEL_NAME> <FILENAME.EXT@@/MAIN/4>
CLEARTOOL RMTYPE -LBTYPE -RMALL
<LABEL_NAME>
List labels.
Create Label elements in directory tree.
Apply label to a file.
Apply label to a newer version of the file.
Remove a label of the name given. The option
"-rmall" causes the removal of all instances of
the label on all files / directories. Remove label
type and all occurrences of the label.
Find all files with given label in the VOB