When the SVN gives the message that no lock tokens available, then it means that the SVN server has the lock information for the file but there is no relevant client who is known as the owner of lock. Usually this lock token issue comes up to me when I have moved the files to some other location or renamed the file.
Currently I follow below steps to break the lock in SVN server
- Find the file which has no-lock-token using the SVN commit window.
- Go to the respective folder of that file and look for SVN logs and search for that file to filter the various results.
- Out of the results, select the top result and right click to get “Update items to the revision” for that folder.
- Now, go to the folder in window explorer and click on “Check for Modification” in SVN context menu. Then in the SVN Modification window, click “Check Repository” to get information from SVN at that commit version. This leads SVN to load with information about the various files in the SVN server at that moment.
- Then, in the Lock column, find if there is someone holding the lock for that specific file.
- If the lock is there, then right click on that file and break the lock.
- If the lock is not there, then repeat the above steps to next result form step 3. There should be some SVN version where lock is held by someone else.
Ajay is a professional developer and architect of LabVIEW applications with extreme interest in getting the hardware connected to LabVIEW and automate the stuffs. He is also a good mentor for the various interns in his career. He is ready to help the people in techie roles.