top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Clearcase: List all checked-in versions between two labels

+4 votes
745 views

I have a simple requirement of running a find command to list "ALL" checked-in versions between two labels.

Im running a below command

 cleartool find a.cpp -ver "brtype(test) && lbtype(LABEL1) && ! lbtype(LABEL2)" -print

which is listing the output as

a.cpp@@maintest5

but LABEL1 is on maintest1 and LABEL2 is on maintest5 and Iam expecting that it would list all checked-in versions rather than just the latest version

any suggestions?

posted Jan 9, 2014 by Mandeep Sehgal

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

1 Answer

+1 vote

For getting list of version between two label LABEL1 and LABEL2

ct find -avobs -nvisible -version "lbtype(LABEL1)" -print | sort > /tmp/LABEL1
ct find -avobs -nvisible -version "lbtype(LABEL2)" -print | sort > /tmp/LABEL2
comm -3 /tmp/LABEL1 /tmp /LABEL2 | tee /tmp/diff

answer Jan 10, 2014 by Amit Kumar Pandey
Similar Questions
+4 votes

When I checkout the files in clear-case, it gives option to either reserve or unreserved it. What is the advantage of these two options. when to use which one? I usually choose reserved checkout.

...