1 Introduction to ClearCasev.1.3 Vít Hrachový Prague, 26 September 2007
2 IBM Rational ClearCaseIntroduction IBM Rational ClearCase Version Control Build Management
3 Versioning Keeps history of a file Comparing different versionsDebugging released product hello.c
4 Check in / out Checkout Enables to change the fileProtects from other checkouts (by default) hello.c
5 Check in / out Checkout Enables to change the fileProtects from other checkouts (by default) ct co -c "comments" hello.c hello.c
6 Check in / out Checkout Enables to change the fileProtects from other checkouts (by default) ct co -c "comments" hello.c ct ci hello.c hello.c
7 Example Initial setup View mkdir ~/binln -s /usr/atria/bin/cleartool ~/bin/ct vi .profile . .profile umask 002 ct mkview -tag `whoami` /data/ccase/viewstore/`whoami`.vws View ct setview `whoami` PATH=$HOME/bin:$PATH:/usr/atria/bin export PATH
8 Example Check Out Check In cd /data/ccase/training/`whoami`ct co -c "some comments" hello.c vi hello.c Check In ct ci hello.c ct diff -pred hello.c ; ct diff -pred -g hello.c ct lsvtree -a hello.c ; ct lsvtree -a -g hello.c
9 Example - directory Check Out Check In vi Makefile hello: hello.cct co -c "adding Makefile to the directory" . ct mkelem -c "Makefile for my project" -ci Makefile Check In ct ci . ct lsvtree -a -g . hello: hello.c cc -o hello hello.c