0
votes

After checking out a copy of a C++ project from subversion and doing any modifications I am getting a

org.tigris.subversion.javahl.ClientException: Working copy '/home/alex/NetBeansProjects' locked

error when trying to commit (yes, I use NetBeans Subversion client). This happened after I have deleted an unused folder from the repository via command line "svn remove -m" command. The folder contained one c++ source file, which not used in the project any more. I have tried doing Cleanup Local copy but with no result.

Any suggestions to why this might be happening and how to fix it?

Forgot to mention: I use Ubuntu and Sun Java

Managed to resolve the issue: Deleted the local copy, closed NetBeans, checked it out via command line, added to files changes manually (with vim), commited. After this opened the project in Netbeans and finally could commit from it. Now everything works.

1
Glad to hear you solved it. One potential factor: are the minor versions of the built-in and command-line SVN clients the same, i.e. both 1.6.x? You can break working copies by using clients that assume different working copy formats - one will upgrade the other's format, and the other will stop working - although you usually get different errors.Rup
Should not be the issue with Netbeans - it uses the "main" svn installation in /usr/binAleksandrs Ulme

1 Answers

6
votes

I think, there are some locks left from a previous operation where you (accidently?) interrupted subversion while working.

Take your command line and try a svn cleanup. This should remove any locks present.