简体   繁体   English

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

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

Background背景

How do you check for a merge in Clearcase? 你如何在 Clearcase 中检查合并? talked about method to figure out if a clearcase file is merged with the lsvtree method.讨论了确定 clearcase 文件是否与lsvtree方法合并的方法。 However, if one wants to check for its opposite, you can only do this directly through graphical means.但是,如果要检查其反面,则只能直接通过图形方式进行。 if you enter ct lsvtree -nmerge in command line, the following error is returned:如果在命令行中输入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 ...

The error implies my assertion above.该错误暗示了我上面的断言。

Question

What is the quickest non-graphical way to see if a clearcase file does not have a merge hyperlink?查看 clearcase 文件是否没有合并超链接的最快非图形方式是什么?

The cleartool describe command should include, as shown in " Find merge arrows pointing to a version in ClearCase " a: cleartool describe命令应该包括,如“查找指向 ClearCase 中版本的合并箭头”所示:

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

That is the approach you started to implement in your other question .这是您在其他问题中开始实施的方法。

For a single file:对于单个文件:

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

I mentioned in 2013 another approach in " Find merge arrows pointing to a version in ClearCase "我在 2013 年在“查找指向 ClearCase 版本的合并箭头”中提到了另一种方法

cleartool descr -ahlink aFile
# or
cleartool descr -fmt "%[hlink:filter]p" aFile

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM