Home Tutorials News Software Online Money Web Designing
| Contact | Twitter

Attempted to lock an already-locked dir: Subversion issue

"Attempted to lock an already-locked dir" - svn: Working copy locked; this message is frequently faced by users of SubVersion (SVN) source repository. The message is self explanatory; simply some source files are locked and no commit or update operations allowed on those files/folders. In some occasions, Software developers in a team receive this message in a SVN operation even though none of them have locked the files or folders; causing confusion. So how would you try and resolve?

We use Subversion to create and store our projects in repositories; Subclipe (an Eclipse plugin) as the client tool to connect to repository.

We tried following solutions

1. Commit Changes - change and commit changes into repository
2. File Delete - delete the files and commit the delete into repository
3. Override & update - override the local changes and update from repository

None of the above options resolved the issue, but got the same type of error messages. Followings are the error messages shown inside Eclipse while trying the above mentioned options.

commit -m C:/workspace/MyProject/config.properties
Attempted to lock an already-locked dir
svn: Working copy 'C:\workspace\MyProject' locked

update -r 13 C:/workspace/MyProject/src
Attempted to lock an already-locked dir
svn: Working copy 'C:\workspace\MyProject' locked

delete --force C:/workspace/MyProject/config.properties
Attempted to lock an already-locked dir
svn: Working copy 'C:\workspace\MyProject' locked

Use Cleanup command

Subversion:Team-CleanupSubversion supports a command named "Cleanup"; it is used to release the locks on a project.

If you have faced with the above issue while no one has locked the project files, you can run this command and resolve the issue.
You do this in Eclipse by right clicking the project; then Team->Cleanup as shown in the image.

Labels: , ,

Search Related Articles

Do you like this post?

Subscribe to get latest
Digg This! Digg this!
reddit it!Reddit it!
Bookmark in del.icio.usSave to Delicious
Print it
SlashdotSlashdot It!


Post a Comment

We appreciate your opinions, suggestions and criticism.

  1. Anonymous Anonymous (July 09, 2009 7:55 AM)  
    Thanks, its working. saved lot of my time.
  2. Anonymous Anonymous (August 01, 2009 1:58 AM)  
    Thank you :)
  3. Thanks for the solution! Really appreciate it!
  4. This was very annoying, your suggestion worked for me so many thanks!
  5. Thank you
  6. Thanks a lot. Its working.
  7. At first CleanUp worked, but now clean up is also not working. Any other solutions?
  8. And what happens when Cleanup does not work? (Which happens more often than you may imagine). Then you have to disconnect from the svn server, delete all svn files and reconnect. I never had so many problems with CVS as I have with Subversion
  9. Awesome, thanks alot.It works.
ARCHIVES
Select Month:
ABOUT AUTHOR
Kamal Mettananada is a Software Architect, Java Explorer and Blogger. Digizol consists of computer related articles, tutorials, tips and other information.

Free counter and web stats

Subscribe to our feed using your online news reader, approximately 1-2 articles per week.
^top^