I keep getting messages like these below whenever I try to commit
, update
or whatever.
svn: E155004: Working copy 'C:\Users\Mateusz\Documents\NetBeansProjects\futurenet\trunk\newproject' locked
svn: E155004: 'C:\Users\Mateusz\Documents\NetBeansProjects' is already locked.
I tried also to do cleanup
as other topics suggest but still the same message.
Could someone help me please?
The lock tells other users that the file is being edited, and you can avoid merge issues. When you set up source control, you can configure SVN to make files with certain extensions read only. Users must get a lock on these read-only files before editing.
Why this error raised
This is because the project folder is closed suddenly (without proper checkout) or some strange reasons like crashes
How to fix it
Way 1 : By doing svn cleanup
from the command line
If the way 1 doesn't help
Way 2 : You can do a fresh SVN i.e.,
Cut the .svn
that is inside the project folder to some other location
In Team->Subversion->Checkout
Do a fresh checkout
Note 1 : You can choose any client such as Git
or Mercurial
and proceed the Regular Checkout Process
Note 2 : You can find the .svn
folder again appeared in your project folder, it means you are done with fresh svn
Added screen for Reference
I had the same problem on windows, but netbeans svn did not help, I used the tortoise integrated option, navigated to the parent of the project in explorer right clicked the project folder / select TortoiseSVN / select clean up / check the Break write locks then click OK
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With