ClearCase UCM - How to get only latest versions from latest baseline

前端 未结 1 1763
逝去的感伤
逝去的感伤 2021-01-15 18:14

How to get only latest versions from latest baseline -

For example, First time in ClearCase, developers check in for the first time, we would have a.zip, b.zip ; Cl

相关标签:
1条回答
  • 2021-01-15 18:46

    A baseline references all the files of a component, even if it is incremental.

    Using an incremental baseline in a non-UCM snapshot view wouldn't work, because it applies a label only on the elements which are changing (which means the parent directories might not have that label, because they haven't changed, which results in a config spec incapable of selecting the changed files, since said parent directory isn't even selected).

    If you are after a view able to show all the latest files, what you can do is:

    • a sub-stream ST to stream S which produce those baselines
    • a rebase of ST with the latest baseline from S:
      cleartool lsbl -fmt "%[latest_bls]p" -component C -stream S
    • a diffbl with the previous baseline, in order to get all the new versions

    But you also can:

    • list only the changed/new files:
      cleartool diffbl -pred -ver latestBl@\aPVob
    • access those files through a dynamic view with the extended pathnames returned by the diffbl -pred -ver command.

    That would allow to list/access only the new/changed versions between 'latestBl' and its previous baseline (with latestBl obtained from the lsbl command shown above).

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