1
我正在寻找查询优化,但IBM在清晰的文档中对此不是很唠叨。 简而言之,我们有相当大的vob,并且我们想列出2个日期之间所做的所有更改,哪个查询是最快的,您是否看到有待改进?Cleartool命令性能:lshistory或找到-exec
方法1:
cleartool find -avobs -type f -element '(created_since(1-Jun-2016) && !created_since(1-Sep-2016))
&& (Element_Type==""Program"" || Element_Type==""Output"" || Element_Type==""Data"")'
-ver 'created_since(1-Jun-2016) && !created_since(1-Sep-2016)'
-exec 'cleartool describe -fmt ""#Name:%Xn Date:%Nd User:%u Label:%1.400Cl Attributes:%a Version:%Vn Comment:%Nc \n"" $CLEARCASE_XPN'
>| test.txt
方法2:
cleartool lshistory -avobs -since 1-Jun-2016 -fmt '#Name:%Xn Date:%Nd User:%u Label:%1.400Cl Attributes:%a Version:%Vn Comment:%Nc \n' -nco -pname >| test.txt
谢谢!
谢谢您的帮助!根据你的评论,我改变了查询:cleartool find -avobs -type f -element'(attr_sub(Element_Type,==,“Output”))'-ver'created_since(2016年6月1日)&&!created_since 2016年1月1日)' -exec'cleartool describe -fmt“”#Name:%Xn Date:%Nd用户:%u标签:%1.400Cl属性:%a版本:%Vn评论:%Nc \ n“ “$ CLEARCASE_XPN' > | test.txt – M4hd1Pro
@ M4hd1干得好!我已将您的评论纳入答案中,以获得更多的知名度。 – VonC