Find merge arrows pointing to a version in ClearCase

后端 未结 1 1661
长情又很酷
长情又很酷 2020-12-19 15:21

I want to find all the merge arrows pointing to a certain version in a script. When I describe the version of the element with the following command:

ct desc         


        
相关标签:
1条回答
  • 2020-12-19 15:52

    The only option in the fmt_ccase man page would be

    %[hlink:filter]p
    

    Displays the hyperlink source and target, with an arrow pointing from the source to the target. The optional H argument lists only the hyperlink names.
    You can optionally specify a filter string, preceded by a colon. This filter if present, restricts the output to names that match the filter string. Case is considered when matching the string.

    If this doesn't work, you have to resort to grep/awk commands in order to extract those version from the cleartool describe output.

    The cleartool descr -ahlink restricts a bit the output.

    –ahlink
    

    The listing includes the path names of the objects hyperlinked to pname, annotated with → (listed object is the to- object) or ← (listed object is the from-object).

    For example:

    -> M:\gamma\vob1\proj\include\db.c@@\main\52 <- M:\gamma\vob1\proj\bin\vega@@\main\5
    

    Beside the full script option, you can have a look at external third-party tools like R&D Reporter, which can vizualize and export those same hyperlinks.
    However:

    • this is a commercial tool
    • depending on the export output and what you want, you might end up parsing just another output to extract what you need.

    For more on that tool, contact Tamir Gefen.

    0 讨论(0)
提交回复
热议问题