1 / 19

Exercises: Configuration Management with ClearCase

Exercises: Configuration Management with ClearCase. What is ClearCase?. 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

dewei
Télécharger la présentation

Exercises: Configuration Management with ClearCase

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Exercises: Configuration Management with ClearCase

  2. What is ClearCase?

  3. 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’

  4. 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

  5. Basic Concepts (cont.) • ELEMENT- file or directory that is stored in a VOB • META-DATAtypes:- labels- attributes- hyperlinks- triggers- can be connected to a specific version of an element, or to a branch, or to the entire element

  6. element * CHECKEDOUT element * /main/LATEST element * CHECKEDOUT element * /main/LATEST element * CHECKEDOUT element * /main/LATEST Basic Concepts (cont.) VOBs vob3 vob2 vob1 CONFIG SPECs element * CHECKEDOUT element * ../phase2/LATEST element * REL1 -mkbranch phase2 element * /main/LATEST VIEWs Kalle’s view Anna’s view Test group’s view Peter’s view elements

  7. element * CHECKEDOUT element * /main/LATEST 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.

  8. Files in a Normal View Window z.cc w.cc x.cc y.cc CHECKEDOUT

  9. /main /main /main /main Files in Version Tree Browser Window x.cc y.cc z.cc w.cc 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 CHECKEDOUT 4 5

  10. /main /main /main /main 4 Versions that match with Default Config Spec 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 5 x.cc y.cc z.cc w.cc

  11. /main /main /main /main Labelling x.cc y.cc z.cc w.cc 0 0 0 0 1 1 1 1 2 2 REL1 2 2 REL1 3 REL1 3 3 3 4 4 4 REL1 5

  12. element * CHECKEDOUT element * /main/LATEST Example of Config Spec for Label ‘REL1’: element * REL1 element * /main/LATEST

  13. /main /main /main /main Versions that match using the Config Spec for ‘REL1’ 0 0 0 0 1 1 1 1 2 2 2 REL1 2 REL1 3 REL1 3 3 3 4 4 4 REL1 5 x.cc y.cc z.cc w.cc

  14. /main /main /main /main Branching x.cc y.cc z.cc w.cc 0 0 0 0 1 1 1 1 2 2 REL1 2 2 rel1_corr REL1 3 REL1 3 3 3 0 rel1_corr 4 4 4 0 1 REL1 5 1

  15. element * CHECKEDOUT element * /main/LATEST Example of ‘Branch Config Spec’ element * CHECKEDOUT element * /main/rel1_corr/LATEST element * REL1 -mkbranch rel1_corr element * /main/LATEST

  16. /main /main /main /main Versions that match using the ‘Branch Config Spec’ x.cc y.cc z.cc w.cc 0 0 0 0 1 1 1 1 2 2 REL1 2 2 rel1_corr REL1 3 REL1 3 3 3 0 rel1_corr 4 4 4 0 1 REL1 5 1 z.cc x.cc y.cc w.cc

  17. 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

  18. Other Utilities • Clearmake- ClearCase variant of the Unix ‘make’ utility • MultiSite- same VOB is used concurrently at several different locations

  19. That’s ClearCase! Let’s try how it works in practise …

More Related