ClearCase:我怎么知道分支的父分支? [英] ClearCase: How do I know the parent branch of a branch?

查看:62
本文介绍了ClearCase:我怎么知道分支的父分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能获得分支机构的层次结构吗?
我必须知道给定分支的父亲
我必须知道给定分支的孩子

Is that possible to get hierarchy of branches? I have to know the father of a given branch I have to know the children of a given branch

cleartool如何获取它?
我宁愿不基于视图配置规范

How do I get it by cleartool? I prefer not to be based on a view config-spec

谢谢!

推荐答案

有了基本的ClearCase,您就无法知道分支的父级,因为它随文件的不同而不同:文件可以启动分支' B2 / main / LATEST 开始,另一个可以从 / main / B1 / LATEST 开始同一分支'。

With base ClearCase, you cannot know the parent of a branch, because it can vary from file to file: a file can start branch 'B2' from '/main/LATEST', another can start the same branch from '/main/B1/LATEST'.

对于ClearCase UCM,您可以通过查询Stream的祖先来确定分支的父级(因为分支是流之后的名字):

For ClearCase UCM, you can determine the parent of a branch by querying the ancestors of a Stream (since the branch is name after the stream):

cleartool lsstream -anc myStream@pvob

之所以可能,是因为分支链接到Streams,而Streams是按照父Streams / Children Streams的严格层次结构组织的。

That is possible because branches are linked to Streams, which are organized following a strict hierarchy a Parent Stream / Children Streams.

请注意,流( cleartool描述,使用 fmt_ccase )仅使您可以访问子流:因此, lsstream -ancestor ,以便显示其父项。

Note that describing a stream (cleartool describe, using fmt_ccase) only gives you access to the children streams: hence the lsstream -ancestor, in order to display its parent.

这篇关于ClearCase:我怎么知道分支的父分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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