如何在大写字母中搜索特定种类的合并超链接? [英] How do I search for specific kinds of merge hyperlinks in clearcase?

查看:72
本文介绍了如何在大写字母中搜索特定种类的合并超链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在明确的情况下创建了错误的合并超链接.这是脚本自动合并了多个文件的结果.鉴于脚本创建了错误的合并,因此我尝试搜索错误的合并箭头的其他实例.以下是我要添加到搜索中的约束条件:

I have recently created an erroneous merge hyperlink in clear case. This was the result of a script that automerged several files. Given that a script created the erroneous merge, I am trying to search for other instances of erroneous merge arrows. Below are the constraints I want to put in my search:

  1. 我合并的所有合并超链接.
  2. 在特定日期

此问题讨论了寻找合并的问题一个文件中的超链接.但是,我正在寻找我创建的一组合并超链接.

This question talks about finding a merge hyperlink in one file. However, I am looking for a set of merge hyperlinks that I created.

我知道您可以

I know that you can describe hyperlinks as shown below:

描述超链接.

cmd-context describe hlink:Merge@516262@/vobs_proj 
hyperlink "Merge@516262@/vobs_proj"
 created 2006-07-14T16:43:35 by Bill Bo (bill.user@uranus)
 Merge@516262@/vobs_proj /vobs_proj/lib/cvt/cvt_cmd.c@@/main/v1.1_port/8 ->
 /vobs_proj/lib/cvt/cvt_cmd.c@@/main/71

但是我正在寻找如何从一组合并超链接中查询创建的..."字段.

But I am looking for how to query for the "created..." field from a set of merge hyperlinks.

如何查询在特定时间创建的合并超链接?

How do I query for merge hyperlinks that I created at a specific time?

推荐答案

考虑然后尝试将查找结果与描述$ CLEARCASE_PN 的 exec cleartool组合起来,也许添加查询(如

Then try and combine the find with an exec cleartool describe $CLEARCASE_PN, maybe adding queries (as described in the query_language)

如果查询不起作用,那么至少您可以grep输出以下内容:

If not query is working, at least you could then grep the output for:

  • 您的登录名
  • 排除( grep -v )个过旧的日期.
  • your Login
  • excluding (grep -v) dates which are too old.

Brian Cowan 添加了

我发现您可以使用它来获取链接名称,但是您必须使用 $ CLEARCASE_PN .

解析它是不平凡的,因为" hlink "格式设置属性显然不起作用.

Parsing it is non-trivial because the "hlink" formatting property apparently doesn't work.

您将必须:

  1. 按日期过滤输出( cleartool desc -fmt%d%Xn \ n" $ CLEARCASE_PN )
  2. 描述"-> "
    的每个所需链接和grep这将为您提供超链接的源和目标.
  3. rmver -xhlink 将允许您删除合并创建的版本
  1. Filter the output by date (cleartool desc -fmt "%d %Xn\n" $CLEARCASE_PN)
  2. Describe each desired link and grep for "->"
    That'll get you the hyperlink source and destination.
  3. rmver -xhlink would let you remove the merge-created versions

这篇关于如何在大写字母中搜索特定种类的合并超链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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