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

ぃ、小莉子 提交于 2019-11-28 05:23:46

问题


For example, the current config spec 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?


回答1:


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.




回答2:


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


来源:https://stackoverflow.com/questions/3334161/clearcase-how-to-find-files-not-labelled-with-lb-on-current-version-selected

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!