gpt4 book ai didi

scripting - 在 ClearCase 中查找指向某个版本的合并箭头

转载 作者:行者123 更新时间:2023-12-01 05:25:08 26 4
gpt4 key购买 nike

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

ct describe filename@@/main/some_branch/3

我得到以下结果:
Hyperlinks:
Merge <- filename@@/main/other_branch/2

我要 ct describe仅输出要在我的脚本中使用的相关信息,即。合并箭头来自的版本。就我而言,输出应如下所示:
filename@@/main/other_branch/2

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

最佳答案

fmt_ccase man page中唯一的选择将是

%[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.



如果这不起作用,您必须求助于 grep/ awk命令以从 cleartool describe 中提取这些版本输出。
cleartool descr -ahlink限制了一点输出。
–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:\gamma\vob1\proj\include\db.c@@\main\52 <- M:\gamma\vob1\proj\bin\vega@@\main\5

除了完整脚本选项,您还可以查看外部第三方工具,例如 R&D Reporter ,它可以可视化和导出那些相同的超链接。
然而:
  • 这是一个商业工具
  • 根据导出输出和您想要的内容,您可能最终只解析另一个输出以提取您需要的内容。

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

    关于scripting - 在 ClearCase 中查找指向某个版本的合并箭头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14334919/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com