您的位置:首页 > 其它

some commands related to "find"

2007-11-14 17:38 330 查看
It is a very useful command when you have to find files in vobs, branches or compare files between labels.

Command to list elements with a label:

cleartool find -all -visible -element "lbtype_sub(<label name>)" -print

Command to list the versions of elements with a label:

cleartool find -all -visible -version "lbtype_sub(<label name>)" -print

Command to compare elements list of different labels. Return elements with <old label> and without <new label>:

cleartool find -all -visible -element "lbtype_sub(<old label name>) && !lbtype_sub(<new label name>)" -print

Command to list the elements of a branch:

cleartool find -all -element "brtype(<branch name>)" -print

Other useful command to view all branch types/names with your user_id.

cleartool lstype -kind brtype | grep user_id

IMPORTANTE: <label name> must be mentioned in config spec.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐