ClearCase UCM-如何从最新基准中仅获取最新版本 [英] ClearCase UCM - How to get only latest versions from latest baseline

查看:50
本文介绍了ClearCase UCM-如何从最新基准中仅获取最新版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何仅从最新基准中获取最新版本-

How to get only latest versions from latest baseline -

例如,首次在ClearCase中,开发人员首次登录,我们将获得a.zip ,b.zip; ClearCase会执行基线基线_1的增量。然后,构建工具进入,是否获得了工件……并部署了它-一切看起来都不错。

For example, First time in ClearCase, developers check in for the first time, we would have a.zip, b.zip ; ClearCase does the incremental baseline baseline_1. Then the build tool comes in, does it gets artifact..and deploy it - everything looks good.

第二次在ClearCase中,他们检入c.zip和d.zip; ClearCase再次以基线_2做增量基线...现在,我如何获取ClearCase快照视图以仅显示新文件(c.zip和d.zip),所以构建工具只能获取最新文件(或最后一个基线)

Second time in ClearCase, they check in c.zip and d.zip ; ClearCase does an incremental baseline again baseline_2... now how can I get the ClearCase snapshot view to only present the new files (c.zip and d.zip) so the buil tool can only get the latest files (or last baseline)

此操作将不断进行,因此基线每次都会更改。.文件也会更改,而且日期也不会生效,因为我们不这样做;不知道时间表或周期。文件名也可以从* .zip更改为......

This will go on and on and on.. so baseline will change each time.. so would the file.... and the date will not work since we don;t know the schedule or cycle. The files name can also change from *.zip to whatever...

推荐答案

基线引用 all 组件的文件,即使它是增量文件。

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

在非UCM快照视图中使用增量基准行不通,因为它仅应用标签在要更改的元素上(这意味着 parent 目录可能没有该标签,因为它们没有更改),这导致配置规范无法选择更改的文件,因为所述父目录是甚至没有被选中。)

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:


  • 子流 ST 到流 S 的流基线

  • 使用ST > S 的最新基准:

    cleartool lsbl -fmt%[latest_bls] p-分量C流S

  • a 与先前的基准差异,按顺序以获得所有新版本

  • 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

但是您也可以:


  • 仅列出已更改/新的文件:

    cleartool diffbl -pred -ver LatestBl @ \aPVob

  • 通过动态视图访问这些文件具有扩展路径名,该扩展名由 diffbl -pred -ver 命令返回。

  • 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.

这将仅允许列出/访问 latestBl 与其以前的基准( latestBl 从上面显示的 lsbl 命令获得)。

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).

这篇关于ClearCase UCM-如何从最新基准中仅获取最新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆