查找当前view中所有checkout出的文件
cleartool lsco -avobs -cview -short
说明
-avobs 需要配合CLEARCASE_AVOBS环境变量
查找当前view中制定Branch所对应的所有文件
find_branch.sh
echo "$1"
cleartool find -avobs -element "brtype ("$1")" -print -nxn
Rename当前view
1. 停止view
cleartool endview <view-tag>
2. 停止view_server 进程
cleartool endview -server <view-tag>
3. 移除view-tag
cleartool rmtag -view <view-tag>
4. 移除ClearCase 注册项
cleartool unregister -view <view-storage-name>.vws
5. view storage改名
mv <old-view-storage> <new-view-storage>
6. 重新注册新的Register
cleartool register -view <view-storage>.vws
7. 新建view tag
cleartool mktag -view -tag <new-view-tag> <view-storage-name>.vws
8. 重启view
cleartool starview <new-view-tag>
说明
操作复杂,如无特殊情况,建议rmview
本文介绍如何使用ClearCase工具进行视图管理,包括查看已检出文件、查找指定分支文件、重命名视图等步骤。涉及命令如cleartool find、cleartool endview及cleartool register-view等。
224

被折叠的 条评论
为什么被折叠?



