在 ClearCase 中查找指向某个版本的合并箭头 [英] Find merge arrows pointing to a version in ClearCase

查看:24
本文介绍了在 ClearCase 中查找指向某个版本的合并箭头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在脚本中找到指向某个版本的所有合并箭头.当我使用以下命令描述元素的版本时:

ct 描述文件名@@/main/some_branch/3

我得到以下结果:

超链接:合并 <- 文件名@@/main/other_branch/2

我希望 ct describe 只输出要在我的脚本中使用的相关信息,即.合并箭头来自的版本.就我而言,输出应如下所示:

filename@@/main/other_branch/2

我在手册页的 -fmt 中没有找到任何相关参数.有什么办法吗?

解决方案

fmt_ccase 手册页

%[hlink:filter]p

<块引用>

显示超链接源和目标,箭头指向源和目标.可选的 H 参数仅列出超链接名称.
您可以选择指定一个过滤字符串,前面有一个冒号.此过滤器(如果存在)将输出限制为与过滤器字符串匹配的名称.匹配字符串时考虑大小写.

如果这不起作用,您必须求助于 grep/awk 命令以从 cleartool describe 中提取这些版本输出.

cleartool descr -ahlink 限制了输出.

--ahlink

<块引用>

列表包括超链接到 pname 的对象的路径名,用 →(列出的对象是目标对象)或 ←(列出的对象是源对象)注释.

例如:

->M:gammavob1projincludedb.c@@main52 <- M:gammavob1projinvega@@main5

<小时>

除了完整的脚本选项,您还可以查看外部第三方工具,例如 R&D Reporter,它可以可视化并导出那些相同的超链接.
然而:

  • 这是一个商业工具
  • 根据导出输出和您想要的内容,您可能最终只解析另一个输出以提取您需要的内容.

有关该工具的更多信息,请联系 Tamir Gefen.

I want to find all the merge arrows pointing to a certain version in a script. When I describe the version of the element with the following command:

ct describe filename@@/main/some_branch/3

I get in the result the following:

Hyperlinks:
  Merge <- filename@@/main/other_branch/2

I want ct describe to output only the relevant information to be used in my script, ie. the versions where the merge arrows come from. In my case, the output should look simply like this:

filename@@/main/other_branch/2

I didn't find any relevant parameters in the -fmt from the man page. Is there any way of doing it?

解决方案

The only option in the fmt_ccase man page would be

%[hlink:filter]p

Displays the hyperlink source and target, with an arrow pointing from the source to the target. The optional H argument lists only the hyperlink names.
You can optionally specify a filter string, preceded by a colon. This filter if present, restricts the output to names that match the filter string. Case is considered when matching the string.

If this doesn't work, you have to resort to grep/awk commands in order to extract those version from the cleartool describe output.

The cleartool descr -ahlink restricts a bit the output.

–ahlink

The listing includes the path names of the objects hyperlinked to pname, annotated with → (listed object is the to- object) or ← (listed object is the from-object).

For example:

-> M:gammavob1projincludedb.c@@main52 <- M:gammavob1projinvega@@main5


Beside the full script option, you can have a look at external third-party tools like R&D Reporter, which can vizualize and export those same hyperlinks.
However:

  • this is a commercial tool
  • depending on the export output and what you want, you might end up parsing just another output to extract what you need.

For more on that tool, contact Tamir Gefen.

这篇关于在 ClearCase 中查找指向某个版本的合并箭头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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