同時有用 Clear Case 的 Windows 工具和 Linux 工具
Windows 介面親和功能操作方便但是很慢
Linux 介面使用指令操作,沒有華麗的GUI,但是快很多
有時候 clearcase view 整個資料夾位置經過搬動或是不正當被移除了
系統裡還存有之前的註冊資料,這時想要再用指令刪除 view 會遇到下面的錯誤:
%>cleartool unregister -view \\host1\ccstg_e\views\test.vws
cleartool: Error: Unable to open file "\\host1\ccstg_e\views\test.vws": No such file or directory.
cleartool: Error: \\host1\ccstg_e\views\test.vws is not a view: No such file or directory
cleartool: Error: Attempt to get location information about "\\host1\ccstg_e\views\test.vws" failed: ClearCase object not found.
這個時候必須要找出原來註冊的 uuid 才能刪除:
%>cleartool lsview -long test
Tag: test
Global path: \\host1\ccstg_e\views\test.vws
Server host: host1
Region: dev
Active: NO
View tag uuid:c8b329ed.60814357.9806.26:55:85:75:e2:bf
View on host: host1
View server access path: e:\ClearCase_Storage\views\test.vws
View uuid: c8b329ed.60814357.9806.26:55:85:75:e2:bf
View owner: DOM1\jdoe
移除註冊資訊:
VIEW example: cleartool unregister -view -uuid <uuid>
Example:
%>cleartool unregister -view -uuidc8b329ed.60814357.9806.26:55:85:75:e2:bf
移除 view tag
VIEW example: cleartool rmtag -view <view-tag>
Example:
%>cleartool rmtag -view test
移除 view
Run cleartool rmview -force -all -uuid <view uuid>
參考資料:
IBM: How to remove a VOB or View from the ClearCase registry whose storage was deleted