如何找到不再使用的旧 Clearcase 视图?

How to find old Clearcase views that no longuer uses?

注意我不会问怎么删除视图 我想找到不再被任何人访问的视图。

您可以使用 cleartool lsview,更准确地说是 -full 选项

cleartool lsview -l -pro -full aViewTg

With the -full option, reports the following additional properties:

  • When and by whom view-private data was last accessed
  • When and by whom a view-private object was last updated
  • When and by whom the config spec was last updated

请注意,不会捕获视图的 所有 用例,如“About the "Last Accessed" time stamp in cleartool lsview output”中所述

您可以将其与“Listing active views on UNIX”结合使用“

cleartool lsview -host your-computer-name

并且您可以通过管道传输结果来描述每个视图的属性。

您可以在“

中查看此类脚本的示例
for i in $list; do
    cleartool lsview -l -prop -full $i | grep "Last accessed" >& /dev/null
    if [ $? -eq 0 ]; then
         echo -n $i
         echo " " `cleartool lsview -reg ccase_win -l -prop -full $i | grep "Last accessed" | awk '{print }'`
    else
         echo $i cannot be found
    fi
done