CLEARCASE
Software Configuration Management (SCM) system
ClearCase
ClearCase is a Software Configuration Management System from IBM Rational Software, Inc. It keeps track of which versions of which files were used to build each release of a software product and it helps organize the work of groups of engineers. It contains a database, but it also contains many special applications which are tailored to facilitate the tasks engineers perform.
ClearCase Benefits
ClearCase
offers many opportunities to save
time.
Parallel
development Mostly-automated merging Derived object sharing Distributed builds Fast, extensible database
ClearCase Weaknesses
Cost
of Ownership
ClearCase costs more than free, open-source, and some other commercial SCMs
Speed
ClearCase views are slower than local file systems, even with good network infrastructure
Sensitivity
to network problems
Clearcase Views
Views
are required in order to use Clearcase. A unique view assigned to a user will:
Allow a developer access to the VOB data (source code storage) Provide a workspace are where users can privately modify VOB data without disturbing the view of the VOB data held by other developers. Changes are only accessible by others when a file is checked into the VOB from the users private space.
Types of Clearcase Views
Snapshot
view
Changes and updates by others are not available to a snapshot view until a new "snapshot" is taken.
Web
view
Web interface.
Accessible from Clearcase Similar to a snapshot view.
Dynamic
view
Access to all versions of VOB elements and view private objects as they are checked into the VOB.
ClearCase Commands
Almost
similar to Unix commands Provide detailed information about a piece of code or document as well as facility to retrieve any previous stored copy of the same entity Easy to understand and use
Clearcase Commands
Check
Out / Check In View File History View Files / Checked Out Files VIEW Related Commands ClearCase Elements Listing Private Files/Folders
NOTE: Normally cleartool command will be aliased to ct. Readers can alias cleartool as ct and use in their development environment.
Commands
CHECK
OUT
Reserved mode
cleartool
co a.c cleartool co -reserved a.c
Un-Reserved mode
cleartool
co -unreserved a.c unco a.c
Undo checkout:
cleartool
10
Commands
CHECK
IN
ci a.c
cleartool
VIEW
FILE HISTORY
cleartool
lshis a.c cleartool lshis
11
Commands
VIEW
FILES
ls
VOB objects and non-view objects
cleartool
VIEW
CHECKED OUT FILES
cleartool
lsco cleartool lsco -cview cleartool lsco -all
12
Commands
CREATE DYNAMIC VIEW
cleartool
mkview -tag <userviewname> <vobpath>
SET
CLEARCASE VIEW
setview <userviewname>
cleartool
UPDATE
VIEW WITH LATEST CHANGES (Snapshot view only)
cleartool
update
13
Commands
DISPLAY
CURRENT VIEW
pwv
cleartool
LIST
ALL VIEWs
lsview
cleartool
14
Commands
CLEARCASE
cleartool
ELEMENTS
Making Elements
mkdir cleartool mkelem
Removing Elements (Avoid using this command)
cleartool
rmelem
15
Commands
LIST
PRIVATE FILES/FOLDERS
cleartool
lsprivate cleartool lsprivate co
DISPLAY
VERSION TREE
lsvtree
cleartool
16
Commands
CREATE BRANCH TYPE
cleartool
mkbrtype <branchname>
CREATE
BRANCH
cleartool
mkbranch <branchname> <element_name>
LIST THE BRANCHES
cleartool
lstype kind brtype
17
Commands
VIEW CONFIG SPEC
cleartool
catcs
EDIT
CONFIG SPEC
edcs
cleartool
18
Commands
FIND
FILES TO BE MERGED
ct
findmerge . -fversion <branchname> -c Valid Comment" -log /dev/null print
MERGING
ct
CHANGES FROM OTHER VIEW
findmerge . -fversion <branchname> -c Valid Comment" -log merge -gmerge
19
Reference
For
detailed information on each command, please click on the following link.
http://www.yolinux.com/TUTORIALS/ClearcaseCommands.html
20
END