Find changes between labels

后端 未结 4 1776
滥情空心
滥情空心 2020-12-15 12:07

Using cleartool I am able to find all the files associated with a label using something like:

ct find -avobs -version \"lbtype (Build-Label)\" -print
         


        
4条回答
  •  难免孤独
    2020-12-15 13:02

    As mentioned in the answer to "How to search files by label"

    cleartool find -all -element "{lbtype_sub(REL1)}" -print
    

    is simpler and lbtype_sub allow the query to be true if any version of the element has the label
    (see query_language man page)

    cleartool find -all -element '{lbtype_sub(REL1) && lbtype_sub(REL2)}' ^ 
      -version '{!(lbtype(REL1) && lbtype(REL2)) && ^
      (lbtype(REL2) || lbtype(REL1))}' -print 
    

    would find all elements that do not have both labels, listing all versions in the current VOB labeled either REL1 or REL2 but not both.

    Note: if the label is a UCM baseline, this is off course even simpler (ct diffbl):

    ct diffbl -ver BL1@\myPVob BL2@\myPVob
    

提交回复
热议问题