如何为给定的UCM“流”查找新的未交付文件。 [英] How to find new undelivered files for a given UCM "stream"

查看:93
本文介绍了如何为给定的UCM“流”查找新的未交付文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用UCM进行开发。像这样

We use UCM for development. We create streams under streams, like this

问题是如何在给定的流中查找新文件。

Question is how to find new files in a given stream.

在示例 feat1 中,相对于其父级 lis1 (lis =本地集成流)。新文件可能来自 feat1 或其子流,例如 developer1 。如何在 lis1 中识别新文件?

In the example "feat1" would have new files relative to its parent lis1 (lis=local integration stream). The new files could be from "feat1" or its child streams like "developer1". How could I identify new files in lis1?

一种选择是在流上创建动态视图(例如feat1 )及其父流(lis1),并获取diff并找出子流中的新文件。

One option is to create dynamic views on a stream (say feat1) and its parent stream(lis1) and take diff and figure out files new in the child stream.

另一个选择是使用 cleartool delivery -preview 并获取版本列表,然后以某种方式(我不知道

问题是子流不一定要基于其父流,因此我们强制执行在交付之前将其恢复为最新基准的规则。

Another option is to use cleartool deliver -preview and get list of versions and then somehow (I do not know it yet) figure out the list of files.
The problem is the child stream is not necessarily rebased to its parent, and we enforce a "rebase to latest baseline before delivery" rule.

我希望有更好更好的方法:)

I hope there is a better and correct way :)

推荐答案

我不认为 cleartool交付-预览 (例如其非UCM等效项 cleartool findmerge -preview )将显示已修改/新文件的完整列表。

对于新文件,它将仅显示需要合并的目录(以便引用或取消引用在合并期间添加/删除的文件)。

For new files, it would only display the directories that need merges (in order to reference or un-reference the files added/removed during that merge).

一种方式(不使用外部差异工具)将是 cleartool find 请求以查找任何文件:

One way (without using an external diff tool) would be a cleartool find request in order to find any file:


  • 分支' developer1 中的版本

  • '中没有任何版本lis '分支

  • with versions in a 'developer1' branch
  • without any versions in a 'lis' branch

类似(未经测试)的东西:

Something like (not tested):

cleartool find . -type f -version "brtype(developper1) && !brtype(lis)" -print

OP Jayan 的情况下:

cleartool find . -type f -element "brtype(developper1) && !brtype(lis)" -print

仅列出所需的元素(即文件,而不是所有文件的所有版本)

Will list only the needed elements (ie files, and not all the versions of those files)

这篇关于如何为给定的UCM“流”查找新的未交付文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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