Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Automatic unlock if a change set is discarded

Hi
I need to implement the pessimistic lock, so I lock the source file at stream level.
If I discard the changes, I would expect that the lock on the resources is automatically removed, but it doesn' happen (the changes are discarded, but the file remains locked).
Is there a way to avoid this behaviour?
From my point of view, it's correct that the lock remain active if the change is suspendend, but if I discard the changes, it means that I want to go back to the previous status...
Is there a way to implement a plugin to perform this automatic unlock after a revert action?
Thank you for any suggestion
Laura

0 votes


Accepted answer

Permanent link
Hi
I need to implement the pessimistic lock, so I lock the source file at stream level.
If I discard the changes, I would expect that the lock on the resources is automatically removed, but it doesn' happen (the changes are discarded, but the file remains locked).
Is there a way to avoid this behaviour?
From my point of view, it's correct that the lock remain active if the change is suspendend, but if I discard the changes, it means that I want to go back to the previous status...
Is there a way to implement a plugin to perform this automatic unlock after a revert action?
Thank you for any suggestion
Laura
I think you'll have to open an enhancement on this. The discard operation doesn't have any support for dealing with locked versionables. It may be possible to write a plugin for this support but I'm not sure if you want to go that far unless pessimistic locking is essential.

You may want to check out the current enhancement and story items for a pessimistic locking model. You can add your support there.
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/89703
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/93617
David Lafreniere selected this answer as the correct answer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 1,202
× 67
× 56

Question asked: Mar 03 '11, 7:20 a.m.

Question was seen: 5,110 times

Last updated: Oct 10 '17, 1:44 p.m.

Confirmation Cancel Confirm