开发者

ClearCase: How to find files not labelled with "LB" on CURRENT Version selected by config spec

For example, the current config sp开发者_开发技巧ec is "element * /main/LATEST". There is a file "A.txt", its current version is 3 and a label named "LB" was applied on its version 2 before.

I want a command to query all files which do not have the label "LB" on its current version.

Obviously, file "A.txt" should meet the query.

How to write the clearcase command?


cleartool find /your/path -cview -version "! lbtype(LB)" -print
  • -cview and -version restrict find to the versions of the current view
  • -version "! lbtype(LB)" find versions without LB


That command could help you:

cleartool find . -type f -version "version(/main/LATEST) && !lbtype(LB)" -print

That will print all the versions (files here) at /main/LATEST that haven't yet the 'LB' label.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜