如何检查文件是否未在 Clearcase 中合并?

How to I check if a file is not merged in Clearcase?

背景

How do you check for a merge in Clearcase? talked about method to figure out if a clearcase file is merged with the lsvtree 方法。但是,如果要检查其对立面,则只能通过图形方式直接进行。如果在命令行中输入ct lsvtree -nmerge,会返回以下错误:

cleartool: Error: Some options are not applicable to non-graphical mode.
Usage: lsvtree -graphical [-all] [-nmerge] [-nco]
               [-options pass-through-opts] pname ...
       lsvtree [-nrecurse] [-short] [-all] [-merge] [-nco] [-obsolete]
               [-branch branch-pname] pname ...

这个错误暗示了我上面的断言。

问题

查看 clearcase 文件是否没有合并超链接的最快的非图形方式是什么?

cleartool describe command should include, as shown in "Find merge arrows pointing to a version in ClearCase"一个:

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

这就是您开始实施的方法

对于单个文件:

cleartool describe aFile | | grep -e "Merge <-"`

我在 2013 年在“Find merge arrows pointing to a version in ClearCase

中提到了另一种方法
cleartool descr -ahlink aFile
# or
cleartool descr -fmt "%[hlink:filter]p" aFile