How to remove a lock on a deleted file?
Accepted answer
Search > Jazz Source Control > Locks
You can search for your own locks or those owned by someone else. From the search results, you can remove locks. This works on files already deleted.
2 other answers
in general you should be able to unlock files. I found in the Web UI (in 4.0) no direct way to do it.
I searched for the locks and then I had do go to each file to unlock it. In general, if you seem to be unable to do it, try with the Eclipse client. You need to have the permission to be able to remove other people's locks.
I found https://jazz.net/forum/questions/45495/unlock-files which might be of interest.
Comments
Hi Ralph, Thanks for your quick answer. Unfortunately I wasn't clear enough in my question: I've already done what you discribed (and ran into the same trouble with not being able to unlock the files from the Web UI, but had to do it in Eclipse), and it worked fine for all files that were still within the Eclipse project. Nevertheless, there are still files that are marked as locked within the Web UI, but that have been deleted from the Eclipse project. Hence, I cannot unlock them from within Eclipse... That's why it would have been nice to be able to unlock them from within the Web UI.
Anu other idea? Regards Peter
Comments
I looked at the code for the <unknown> locks. First it will look up all the locks for the selected user. Then it will see if they exist under SCM control e.g. a repository workspace. If the lock doesn't exist under SCM control i.e. has no version, it will call it <unknown>. So it is possible that the locks are for files in a sandbox that were never checked in. In that case, if you right-click the locks in the Eclipse client there would not be any history. The other big possibility is that the files did have a version, but were deleted. In that case the <unknown> lock would have a history.
This doesn't help to delete the locks, but maybe it helps a little to understand what is happening.
1 vote