Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to undo a checkout that has no activity attached to it

I have a quite weird problem here with UCM-ClearCase.
A user tried to deliver from his dev-stream to the int-stream of the project. For some reason he decided that he needed to cancel the delivery and executed "deliver -cancel". According to him this did not work the first time (although he does not remember the error message) but the second time he issued the command the delivery was actually canceled.

The problem now is that he has a checkout in his int-view (!) that does not have an activity attached to it. The activity of the delivery was deleted (obviously during the cancellation of the delivery). If he tries to undo the checkout in the int-stream (by using "unco") ClearCase outputs a warning that he needs to set an activity and a view context in order to undo the checkout. Setting some activity (and a view context) is no good, the same error message appears.

EDIT:
The exact error message given by ClearCase is:
cleartool: Error: To operate on UCM branch, must be set to an activity and a UCM view.
cleartool: Error: Unable to cancel checkout for "PathToFolder".

The checked out element is only a folder and no other elements (neither files nor folders) are checked out
END_OF_EDIT

Creating a new activity in order to attach it to the checkout did not help either as I did not find a command to attach an activity to a already checked out folder.

According to IBM we could remove the view and all its references and then re-create it which should solve the issue of the checkout.

I am kind of hesitant to do so without being sure that there is no other way to handle the situation (especially as the above-mentioned link states that there might be cases when removing the view does not really help). Is anyone aware of a different solution for this kind of situation?

Best Regards

like image 353
user2606240 Avatar asked Dec 07 '25 03:12

user2606240


1 Answers

I confirm that to remove all checkouts associated with a specific vob and view is

cleartool rmview -force -uuid (uuid_of_the_view) -vob \aVob

See "unable to perform delivery on clearcase because of checked out file in snapshot view?"

Simply make sure the user has no other checked out files.

like image 162
VonC Avatar answered Dec 09 '25 01:12

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!