As i need list of the file changes between two labels and diff of the versions(components) of the two labels in my view in unix ,tried the below commands . Can any one pls help better way .
I lack a bit of background to say whether this would better, and in what sense...
ct -avob -ele 'lbtype_sub(label1) &&!lbtype_sub(label2)' -nxn -print
ct -avob -ele 'lbtype_sub(label2) &&!lbtype_sub(label1)' -nxn -print
for f in $(ct -avob -ele 'lbtype_sub(label1)' -ver 'lbtype(label2) &&!lbtype(label1)' -nxn -print); do echo 'diff -diff "$f@@/label1" "$f@@label2"'; done | cleartool
It won't be fast...
Maybe you know more about the vobs where the labels may be found or things like that. I also forgot what comm does exactly...
Next, I didn't test my commands. There may be typos, especially with the quoting.
Finally, there is a hidden/unsupported command which I have probably mentioned 10 times or so in the past but do not remember now (home), and which reports actvity between labels. It may apply here.
Marc
Hi,
If you are using Windows environment, you can go for Reporting Wizard. There you have the option of generating report for versions changed between labels.
Hope this helps. Cheers :)
Hi All,
I need the changes between the two lables in clearcase ucm .
As i am using the below script to get the changes or checkin files data between tho baselines . ia m getting errors. please have a look .
#! /bin/bash
# Script to show diffs between 2 ClearCase labels