top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Clearcase : Can someone share frequently used command while dealing with clearcase ?

+3 votes
285 views
Clearcase : Can someone share frequently used command while dealing with clearcase ?
posted Jan 9, 2016 by Harshita

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

As per my knowledge Clearcase tool has support of two views namely snapshot view and dynamic view. Earlier I had used dynamic view but now and days using the snapshot views. I would like to share few frequently used commands what I use as following :
1. To view hijacked files - $ct ls -r | grep hijacked
2. To view checked out files - $ct lsco -short -r -me -cview
3. To checkout an individual file - $ct co -c "reason to checkout"
4. To checkin an individual file - $ct ci -c "reason to checkin"
5. To checkout a set of hijacked files - $ct co -c "reason to checkout" ct ls -r | grep hijacked
6. To checkin a set of checked out files - $ct ci -c "reason to checkin" `ct lsco -short -r -me -cview
I have always used merging by using branch.
First go to the destination where the target branch config spec is set then run following command
7. To merge code from one branch to second branch - $ct findmerge . -fversion ...//LATEST -merge -gmerge

answer Jan 10, 2016 by Vikram Singh
I have used clearcase, sometime back (but now someother config tool).
So I need to recall the commands, and update may be later. In clearcase, you can open the tree structure visually helps lot (i think the command is ct xlsvtree file.c) . Also can display the tree using command line, "ct lsvtree file.c"
...