Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse, SVN trouble

A have copied a folder from one project, which is generated by system to another. Now I want to commit all stuff from the project, the folder was copied to. What I get is (that copied folder is in folder /webapp):

org.tigris.subversion.javahl.ClientException: Attempted to lock an already-locked dir svn: Working copy '/home/user/webshop/webshop-impl/src/main/webapp' locked

Ok, I tried to Team->Cleanup and got:

org.tigris.subversion.javahl.ClientException: Path is not a working copy directory
svn: '/home/user/webshop/webshop-impl/src/main/webapp/gwtmodules' is not a working copy directory

org.tigris.subversion.javahl.ClientException: Path is not a working copy directory
svn: '/home/user/webshop/webshop-impl/src/main/webapp/gwtmodules' is not a working copy directory

This eclipse SVN client is messing with me long time with this darn tigris exceptions =)

Please, help with advice :) What am I doing wrong?

like image 232
whatswrong Avatar asked Feb 11 '11 14:02

whatswrong


2 Answers

This had me baffled as well when I got this error. This happens if we have some pending sessions on committing our changes so we’ll need to do some clean up before we’ll have another try on a commit.

This is the fix:

In STS or eclipse, right click on the offending project, click Team and then select Refresh/Cleanup. SVN gets the offending .lock files and deletes them. You can also do this from the command line.

like image 91
James Drinkard Avatar answered Sep 22 '22 16:09

James Drinkard


You should delete .svn folders which contains repo info after you copy a directory to another place.

You are probably seeing it because the copied directory has some svn file which points to some place that does not match to the new location.

like image 37
fmucar Avatar answered Sep 21 '22 16:09

fmucar