1. Introduction
2. Commands
3. Snapshot view
4. Examples
1.1. What is Rational Clearcase
Taken from http://en.wikipedia.org/wiki/Rational_ClearCase:
Rational ClearCase is a software tool for revision control (configuration management, SCM etc) of source code and other software development assets. It is developed by the Rational Software division of IBM. ClearCase forms the base of version control for many large and medium sized businesses and can handle projects with hundreds or thousands of developers, but the price is quite steep for smaller companies.
ClearCase can run on a number of platforms including Linux, Solaris and Windows. It can handle large binary files, large numbers of files, and large repository sizes. It handles branching, labeling, and versioning of directories.
Instead of make a list of most used commands, I have reported them in my personal .bashrc file (see next chapter).
3.1. Creating a snapshot view
We suppose that the root directory of the data in the dynamic view is
/pro/linux/2.6.22
and we want to make a snapshot in
/ccview/myuser/2.6.22-snap
Create the local snapshot view
ct mkview -snapshot -tag 2.6.22-snap /ccview/myuser/2.6.22-snap
and change to the snapshot directory
cd /ccview/myuser/2.6.22-snap
Edit the configspec
ct edcs
add the rules
element * CHECKEDOUT
element * /main/YOURBRANCH/LATEST
element * /main/LATEST
and add the load rules
load /ccview/myuser/2.6.22-snap/Documentation
Exiting from the configspec editor will start the snapshot update. This operation can take very long time, depending on the load rules.
When done, you are ready to work. Don't forget to call
ct update
to synchronize the snapshot.
4.1. My ~/.bashrc file
You can download here my typical .bashrc file.
|