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
Asked
Active
Viewed 3,583 times
3

user2606240
- 641
- 1
- 6
- 20
-
What is the exact error message? Is the checked out element just a folder? Is there a file also checked out? What version of ClearCase is used here? – VonC Jul 22 '14 at 12:57
-
I edited my post accordingly, thanks for the hint – user2606240 Jul 22 '14 at 13:10
-
does the rmview I mention below help? – VonC Jul 22 '14 at 13:33
-
I am not sure yet as the user is situated in Singapore and has already left for today. But we will try it out tomorrow - and hope that everything works fine – user2606240 Jul 22 '14 at 13:45
-
Ok, again, you just have to make sure that user has no other element in checkout for that view. – VonC Jul 22 '14 at 13:46
-
Jup, already did, there's only the one folder being checked-out. – user2606240 Jul 22 '14 at 13:56
-
Then it should work just fine. – VonC Jul 22 '14 at 14:00
1 Answers
2
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.
-
-
Why do I have to make sure the user has no other checked out files ? What would happen else ? – andy meissner Sep 10 '20 at 13:42
-
@andymeissner Let me remember (7 years later): those checkout files would loose their "checkout" status, which means someone else could checkout/checkin them before that user, who first did the checkout, becomes aware of the new situation. – VonC Sep 10 '20 at 14:50