Clear lock on file

Due to some issues we were having with an older project, we cleared our organization lock rules. This morning we had someone working and it was throwing errors about a file being locked so they couldn’t check in, they made it writable and checked in anyway, and it seems fine, however the file in question was showing as locked by them. Even after they’ve checked in that file is still showing as locked by them, but all lock rules are removed.

How can we force clear the lock on the file?

Ah I finally found it… 1400 locks on this repository apparently and I can only clear them 25 at a time…

Hi @crossmr ,

Thank you for reaching out to us.

To remove the lock rule, it needs to be removed at the repository and organization level. In addition, you will need to remove the existing locks manually as well.

Seems shortsighted to not have an administrative tool to remove all locks, on a VCS that depends on locking.

If you are using a recent Plastic version, you should be able to release the locks using the Plastic GUI.

All lock rules were removed, yet many files in the project had a lock retained on them and a couple were locked by a user even though they had checked in everything.

I have the the latest, or a very recent addition and couldn’t find anything to release a locked file.I could lock a file, but not release it.

I’m afraid that removing the lock rules doesn’t remove the current locks on the server but just prevents new locks from being created.
It’s very strange for this user to still have locks if they checked in all the pending changes. Is it possible that the user removed the workspace at some point without releasing the locks?

Please check “Enhanced GUI for better branch awareness” in the following link:
https://blog.unity.com/engine-platform/unity-version-control-smart-locks

The locks can also be released via the command line “cm lock list --help” and “cm lock unlock --help”.