Excercises: CM with ClearCase Sirkka-Liisa Juoperi Exercises: Configuration Management with ClearCase
Excercises: CM with ClearCase Sirkka-Liisa Juoperi What is ClearCase?
Excercises: CM with ClearCase Sirkka-Liisa Juoperi ClearCase is… Version management tool for all types of files and directories - records all actions - reports history - accurate reproduction of every release Available both in Unix and Windows NT environments Two user interfaces - command line: ‘cleartool’ - graphical: ‘xclearcase’
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Basic Concepts VOB - Versioned Object Base - the whole database consists of several VOBs CONFIG SPEC - configuration specification (file) that defines what version of each VOB element you see in your view VIEW - a working area from where you have access to the VOB - each individual developer or closely coordinated group has an own view
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Basic Concepts (cont.) ELEMENT - file or directory that is stored in a VOB META-DATA types: - labels - attributes - hyperlinks - triggers - can be connected to a specific version of an element, or to a branch, or to the entire element
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Basic Concepts (cont.) element * CHECKEDOUT element * /main/LATEST vob1 vob2 element * CHECKEDOUT element * /main/LATEST element * CHECKEDOUT element *../phase2/LATEST element * REL1 -mkbranch phase2 element * /main/LATEST element * CHECKEDOUT element * /main/LATEST CONFIG SPECs VIEWs vob3 Kalle’s viewAnna’s view Test group’s viewPeter’s view elements VOBs
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Default Config Spec: element * CHECKEDOUT element * /main/LATEST - a rule per line - rules are processed from top to bottom; if no matching version of an element was not found for the first rule, the system tries to find a version that matches the second rule etc. element * CHECKEDOUT element * /main/LATEST
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Files in a Normal View Window x.ccy.cc z.ccw.cc CHECKEDOUT
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Files in Version Tree Browser Window x.ccz.ccy.cc w.cc /main CHECKEDOUT
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Versions that match with Default Config Spec x.cc 5 z.ccy.ccw.cc /main
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Labelling x.ccz.ccy.cc w.cc /main REL
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Example of Config Spec for Label ‘REL1’: element * REL1 element * /main/LATEST element * CHECKEDOUT element * /main/LATEST
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Versions that match using the Config Spec for ‘REL1’ /main REL1 x.cc z.ccy.ccw.cc
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Branching 0 rel1_corr 1 x.ccz.ccy.cc w.cc /main REL rel1_corr
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Example of ‘Branch Config Spec’ element * CHECKEDOUT element * /main/rel1_corr/LATEST element * REL1 -mkbranch rel1_corr element * /main/LATEST element * CHECKEDOUT element * /main/LATEST
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Versions that match using the ‘Branch Config Spec’ x.cc z.cc y.ccw.cc 0 rel1_corr 1 x.ccz.ccy.cc w.cc /main REL rel1_corr
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Basic Actions for an Element Checkout - a new editable version is created - only one person can edit the file at the same time Checkin - the version that was created by checkout command is saved to the VOB and is then visible to the other views - the element changes to write-protected mode Uncheckout - undo operation for checkout
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Other Utilities Clearmake - ClearCase variant of the Unix ‘make’ utility MultiSite - same VOB is used concurrently at several different locations
Excercises: CM with ClearCase Sirkka-Liisa Juoperi That’s ClearCase! Let’s try how it works in practise …