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.