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