I have having an issue in clearcase delivery. There are some files that are checked out from a snapshot view and the view has been removed. I am trying to deliver from a dynamic view in unix. Since I can see those files checked out in the activity, is there a way to check in those files and proceed the delivery operation?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can simply remove completely the view: that will cancel the checkout state of those files, and will allow you to resume the deliver.
See "ClearCase: Is it possible to cancel checkouts not made from your own view?".
cleartool rmview -force -uuid (uuid_of_the_view) -vob \aVob
You can find the uuid of the view by doing a cleartool descr -l vob:\aVob
.
For snapshot views, you can regenerate the .view.dat and unco the file that way, with "Uncheckout an element from a snapshot view when the view root directory is not accessible"
- List the checkouts to identify the view and checkout information
- Create a new temporary view root directory
Regenerate the view root to the new temporary directory
ccperl "C:\Program Files\Rational\ClearCase\etc\utils\regen_view_dot_dat.pl\" -tag <view-tag> <tmp-dir>
Cancel the checkout
cleartool unco -rm <tmp-dir>\<vob>\<path>\<checkedout-file>
Remove the temporary directory
rmdir /S/Q <tmp-dir>