Is there any command in which I provide a baseline name plus an element filename, and it returns the exact file version that is labeled by this baseline?
For instance:
baseline name: 7.5.3.1
element filename: a.java
Result:
/main/mystream/16
My question refers to UCM, where you can’t move a baseline between versions…
If there’s no such command, it seems I have to write a short script. In that case, I probably have to run cleartool lsvtree and then parsing the output – am I right? Is that the most rapid way?
Thank you
You could query the exact version by looking at the label on the version of that file.
But that would only work if the baseline is a full baseline (meaning it has set a label named after the baseline on each file part of the component associated with said baseline).
See “What is the difference between Full baseline and Incremental baseline in Clearcase UCM?“.
If that is the case, then you can look to the exact version with a
cleartool findcommand, like in “How to search files by label“.Other mechanisms are described in the IBM technote “How to determine which element version a label was moved from“.