Search code examples
clearcase

How to list all the obsolete labels in a VOB


I need a command that could list all the obsolete labels in a VOB.

I tried

lstype -kind lbtype -obselete

But it lists all the lbtypes.


Solution

  • You could at least limit that list to type from the specifc vob with lstype:

    cleartool lstype -invob \aVob -kind lbtype -obs
    

    If that doesn't work, check that you have at least one label which is actually obsolete:

    cleartool lslock lbtype:aLabel@\aVob
    

    Note that lstype always list non-obsolete types.
    It also lists obsolete ones if you add the -obsolete option. See an example at this technote

    cleartool  lstype -obsolete -kind trtype
    2007-12-03     joeuser     trigger type "checkin_trig" (locked)
    2007-12-03     joeuser     trigger type "checkout_trig" (obsolete)
    

    That means you will have to grep the output for "obsolete".
    As in:

    cleartool lstype -obsolete -kind lbtype|grep obsolete