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.
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.
相关文章推荐
- Some tricky problems related to "protected"
- [Android] "Failed to find Java version for 'C:\Windows\system32\java.exe"问题的解决方法
- Unable to find a value for "字段名" in object of class java.lang.String using operator "."
- Unable to find a value for "dwmc" in object of class "java.lang.String" using operator "." (null
- file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it 的解决
- )Name or service not known: mod_unique_id: unable to find IPv4 addr ess of "wb_three_cgi20"
- PHP: Unable to find the wrapper "https"
- 安装myeclipse时出现failed to find "C:/Windows/Temp"问题的解决方案
- Android Studio "Error:Failed to find: com.android.support:XXXX"错误解决办法
- some&nbsp;blogs&nbsp;related&nbsp;to&nbsp;stream&nbsp;med…
- "Unable to find record. No key specified"错误分析及解决办法
- C++ debug "cannot find the file Debug\***.pch" & how to debug multi-projects under one solution
- 错误"Unable to find manifest signing certificate in the certificat...
- Java Project提示"Errors occurred during the build. Excepted to find an object at table index”
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- CMake Error:Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE "".
- DomainU Fails to boot with "Error: Device 0 (vif) could not be connected. Could not find bridge, and none was specified"
- "BEA-000450" "Unable to find internal data record for the socket"
- android studio 报错"Failed to find: com.android.support:appcompat-v7:10.+"
- Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法