-element 和 -version 之间的 Cleartool 区别

Cleartool difference between -element and -version

在寻找一种方法来查找自日期 X 以来更改的 clearcase 存储库中的所有文件时,我发现了两种方法

cleartool find . -type f -branch "brtype(abranch)" -element "{created_since(10-Jan)}" -print

如所述here

cleartool find . -type f -branch "brtype(abranch)" -version "created_since(10-Jan)" -print

as(虽然修改为类似于同一分支)发现 here

-version 和-element 中的created_since 过滤器有什么区别?结果确实不同。

在“ClearTool: Finding changes from specific date”中,我不得不使用 -version 来检查更新的目录并检测 删除的 文件。

但是在“how to find files in a given branch”中,由于搜索仅限于文件,我只需要检查文件 "created"(添加到源代码管理,因此 -element)因为某个日期。我不必检查那个问题的修改。

cleartool find 允许过滤:

  • -element: Selects element objects using a VOB query; all of the selected element's branches and versions are also selected.
    Using this option with a brtype query makes find -all much faster in a large VOB where the specified branch type exists on a relatively small number of elements.

注意:我在“find files in clearcase" or "UCM-Clearcase - How to find new undelivered files for a given “stream””中使用了find + -ele brtype方法。

  • -version: From the set of objects that survived the element-level and branch-level queries (if any), selects version objects using a VOB query.