Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN locked in netbeans

Tags:

svn

netbeans

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 cleanupas other topics suggest but still the same message. Could someone help me please?

like image 712
divHelper11 Avatar asked Nov 13 '15 11:11

divHelper11


People also ask

Why is SVN locked?

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.


2 Answers

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

SVN

like image 87
Sulthan Allaudeen Avatar answered Oct 06 '22 02:10

Sulthan Allaudeen


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

like image 24
APA Avatar answered Oct 06 '22 04:10

APA