IBM Rational Clearcase
IBM Rational Clearcase
IBM Rational Clearcase
ClearCase is one of the industry leading version control system from IBM. According to IBM following are some benefits of CleaCcase
Local and remote client access Flexible usage models: Unified Change Management (UCM) or base Rational ClearCase Wide range of supported environments including Windows, Linux, Unix and z/OS Transparent, real-time access to files and directories Support for disconnected usage Scales to support large geographically distributed enterprises Integration with leading IDEs including Eclipse, Rational Application Developer, Microsoft Visual Studio, and for systems environments the Cadence Design Framework II software Parallel development support including automatic branching and advanced merging and differencing technology Automated workspace management Integration with design, development, build, test and deployment tools
Compared to other version control systems like CVS or Subversion, learning curve for clearcase may be more steep. Initially we may feel like its very complicated and confusing, but after a period of usage, you can feel the real power of version controlling. Unlike Subversion, clearcase operations are not very stable and fail safe. At any point of time, it can break. But after gaining some experience, you will know how to fix things.
Clearcase Clients
IBM offers two kinds of clearcase client software. ClearCase Explorer (Fat Client) and Clearcase Remote Client (CCRC) (Thin Client). IBM also provides the client as plugins to popular IDEs like Eclipse and Visual Studio. In addition to these GUI clients, there is a comand line tool also available, which can be used to execute many commands which are not available on the GUI. Note: All the articles in this website are related to clearcase client usage for a developer/programmer. If you are looking for some clearcase server administration related stuff, this is not the place
Following is a brief explanation of various elements of clearcase. A basic knowledge of these elements are required to work with clearcase. Following is a diagram which shows a simplified structure of clearcase.
details you can see in "Clearcase Meta Data Explorer" is coming from the PVOB. See the below screenshot
Project
A clearcase project corresponds to your application project. Suppose 10 developers are working in a project, you may have 10 development streams and one integration stream inside the clearcase project (1 development stream per developer)
Project Folder
Project Folders are used to organize related projects. They may be many projects under a project folder
clearcase project configuration, there will be one development stream per developer and just one integration stream to integrate the work together.
Snapshot Views
In a Snapshot View, clearcase copies all files from the stream in the server to a directory in your local machine. This directory is called "View Root". After copying files to local machine, you can disconnect from clearcase and start working on the files. Thats the main advantage of Snapshot Views; ie, Snapshot Views provides access to files even if there is no network connection to clearcase. After you complete your work, you need to store your modified files back to the server. This is achieved by doing the "Check-In" operation of clearcase. (After you do this your files will be safe on the server; even if your system crashes, your changes will not be lost)
Dynamic Views
In a dynamic view, there will not be a local copy of files in your local machine. But, you can see all files in the stream in your local machine (You can consider this as "Shortcut Links" to files on server. So the disadvantage of dynamic views is, you need network connection to access the files. But there is one advantage also with dynamic views. Since anybody modifies a file in dynamic view will be modifying directly on the server. So server copy of files will be always the latest copy. (In snapshot view server copy will become the latest copy only after you do "CheckIn" operation). Technically dynamic views are implemented using a proprietary network file system called MVFS (Multi Version File System). Using this file system, the VOB will be
mounted on to a network drive (windows) or part of the root file system (Unix/Linux). Dynamic views are something unique to clearcase; other version controlling softwares like subversion or CVS doesn't have a similar thing.