ClearCase: How to find files which was not labelle

2019-01-27 00:47发布

For example, the current config spec is "element * /main/LAETST". there is a file -"A.txt", current version is 3 and a label named "LB" was applied on its version 2 before.

I wanna a cmd to query all files which do not apply label "LB" on its current version.

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

How to write the clearcase cmd? Thanks

2条回答
做个烂人
2楼-- · 2019-01-27 01:34

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.

查看更多
Deceive 欺骗
3楼-- · 2019-01-27 01:36
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
查看更多
登录 后发表回答