在 ClearCase 中查找所有未合并的文件/元素 [英] Find all unmerged files/elements in ClearCase

查看:10
本文介绍了在 ClearCase 中查找所有未合并的文件/元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在我工作的地方使用 ClearCase,我试图找出如何找到任何已修改但未合并的文件.我们在 ClearCase 的最顶层有一个主分支,这是最终源代码更改合并到的地方,也是我们进行正式发布构建的地方.然后我们在 main 下有一个集成分支,用于解决集成问题.当我们在集成分支中使一切正常工作并进行测试时,我们将集成分支合并到主分支.对于单个功能实现和错误修复,我们从集成分支创建一个新分支(通常以操作、功能或错误修复命名)并解决问题.完成后,我们将该更改合并到集成分支.

我想知道是否有人知道一个命令或一种方法来查看哪些文件在功能/错误修复分支中被修改但没有合并回集成分支.我一直在环顾四周,但似乎找不到办法做到这一点.我希望能够运行该命令并让它告诉我在所有子分支上已修改但未合并的所有文件.谢谢.

解决方案

如果你知道源分支和目标分支(主题详细在 乔纳森答案,我已投票),然后不要忘记 查询原语 合并:

merge (from-location , to-location)

<块引用>

在所有情况下,如果对象所属的元素具有连接合并超链接(默认名称:Merge),则TRUEcode>from-location 和 to-location.
您可以使用分支路径名或版本选择器指定一个或两个位置.
如果合并超链接涉及该分支上的任何版本,则指定分支会产生 TRUE.
分支路径名必须完整(例如,/main/rel2_bugfix,而不是 rel2_bugfix).

该主题说明了该查询的实际操作:

<块引用><块引用>

如何找到特定分支上所有已签入但未合并的元素?

cleartool find \viewadministrationProjectVOB-branch "brtype(HNH-372452) && !merge(...HNH-372452LATEST,...main-372452LATEST)" -print\viewadministrationProjectVOBCom-APIDllCOMFrontendDllMmi.cpp@@mainHNH-372452\viewadministrationProjectVOBgeometrygeochaingeocutterloc.cpp@@mainHNH-372452

那个合并超链接"就是你在版本树中看到的红色箭头:
(请参阅文章需求的版本控制和并行开发")

We use ClearCase where I work and I'm trying to figure out how to find any files that have been modified but not merged up. We have a main branch at the very top level in ClearCase, and this is where the final source code changes are merged to and where we do our formal release builds from. We then have an integration branch under main where integration issues are worked out. When we get everything working and tested in the integration branch, we merge the integration branch up to main. For individual feature implementations and bug fixes, we create a new branch (usually named after an action, feature, or bugfix) off of the integration branch and work the issue. When we are done with it, we merge that change up to the integration branch.

I was wondering if anybody knew of a command or a way to see what files are modified in the feature/bug fix branches but were not merged back up to the integration branch. I've been looking around but I can't seem to find a way to do it. I would like to be able to run the command and have it tell me all files that have been modified on all of the sub-branches but not merged up. Thanks.

解决方案

If you know the source and destination branches (topic detailed in Jonathan's answer, which I have upvoted), then don't forget the query primitive merge:

merge (from-location , to-location)

In all cases, TRUE if the element to which the object belongs has a merge hyperlink (default name: Merge) connecting the from-location and to-location.
You can specify either or both locations with a branch pathname or a version selector.
Specifying a branch produces TRUE if the merge hyperlink involves any version on that branch.
The branch pathname must be complete (for example, /main/rel2_bugfix, not rel2_bugfix).

This thread illustrates that query in action:

How is it possible to find all the elements on a specific branch that are checked in and not merged away?

cleartool find \viewadministrationProjectVOB 
   -branch "brtype(HNH-372452) && 
   !merge(...HNH-372452LATEST,...main-372452LATEST)" -print

\viewadministrationProjectVOBCom-APIDllCOMFrontendDllMmi.cpp@@mainHNH-372452
\viewadministrationProjectVOBgeometrygeochaingeocutterloc.cpp@@mainHNH-372452

That "merge hyperlink" is the red arrow you see in version tree:
(see article "Versioning and parallel development of requirements")

这篇关于在 ClearCase 中查找所有未合并的文件/元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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