Friday, November 20, 2009

Clearcase substractive merge

How to do a subtractive merge in clearcase to remove changes you made in a version

1) First list the version tree.
bash # /vobs/ims_scm/test> ct lsvtree -s -all .
.@@/main
.@@/main/0
.@@/main/1
.@@/main/2
.@@/main/3
.@@/main/4
.@@/main/5
.@@/main/6
.@@/main/7
.@@/main/8
.@@/main/9
.@@/main/10

2) Remove the changes made in version 9
bash # /vobs/ims_scm/test> ct ls -d
.@@/main/10 Rule: /main/LATEST

bash # ct co -nc .

bash # /vobs/ims_scm/test> ct ls -d
.@@/main/10 Rule: /main/CHECKEDOUT

ct merge -to . -delete -version /main/9

Now version 11 of the directory will have the changes made in version 8

Wednesday, November 11, 2009

Some vital ClearCase triggers

1) comment trigger: Users must enter a comment for clearcase operations (co, ci , mkxtype... etc).
2) Post undo checkout trigger: If it is leaving 0 th version in a branch, remove the branch.
3) mkxtype trigger: All types should be created only by vob owner and root.
4) rmelem trigger: Other than vob owner and root no one should have access to remove elements.
5) rmver trigger: Other than vob owner and root no one should have access to remove versions.
6) rmname trigger: Other than vob owner and root no one should have access to remove elements from directory versions.

how to find out files to be merged between two views?

To see the difference of version selected by two clearcase views and find the files to be merged run the below command.
Cleartool setview to_version_view
cleartool findmerge PATH -ftag from_version_view -print

This command will prompt a warning message when directories are found. So need to run the following command to find out the directory list.
cleartool findmerge PATH -d -ftag from_version_view -merge -cqe

if you need only the directory list undo the check out of the current directory after collecting the list.

Monday, November 2, 2009

Difference between replicas?

1) Permission of elements. (using -npreserve when importing the replica)
2) Disk configurations and Pool's storage assignments.
3) Site wide implemented triggers.