Search code examples
clearcase

how to list only the name of the baselines and name of the stream from particular component in UCM ClearCase


Is there any way that I can list all baselines' name and stream name for those baselines from a particular component?


Solution

  • The basic command would be cleartool lsbl:

    cleartool lsbl -comp aComponent@\aPVob
    

    You can then use fmt_ccase to display the stream as well as the baseline.

    cleartool lsbl -fmt "%n %[bl_stream]Xp\n" -comp aComponent@\aPVob
    

    A similar command would be:

    cleartool lsbl -tree -comp aComponent@\aPVob 
    

    (to see the stream, and its location within the UCM project).

    If that doesn't work, you can, for each baseline returned by the first command, do a:

    cleartool descr -fmt "%n %[bl_stream]Xp\n" aBaseline@\aPVob