Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN externals repo "is already locked" on update

Basically I have to repo on the same server:

svn://repo/foo
-> checked out to d:\foo

svn://repo/bar
-> d:\foo has an svn:external property set to check this out into d:\foo\bar

When an "svn:update" or a new "svn:checkout" this is gist of the error:

Command - Update
Updated - D:\foo
External - D:\foo\bar
External failed - D:\foo\bar
Error - d:\foo\bar is already locked via d:\foo

After I "clean" or manually release the lock, the problem still persists.

Any insights would be greatly appreciated. Thanks!

Update:

Attila nailed it in the comment. I had "foo/bar" existing in the repository.

For future reference - when using SVN:External property, SVN will create the destination folder for the external reference.

like image 342
user495368 Avatar asked Mar 22 '12 14:03

user495368


People also ask

How do you break the lock in TortoiseSVN?

To release a lock manually, select the file(s) in your working copy for which you want to release the lock, then select the command TortoiseSVN → Release Lock There is nothing further to enter so TortoiseSVN will contact the repository and release the locks.


1 Answers

As resolved in the comments (just to have it in proper answer as well):

When using svn:externals, the directory where the externals repository is checked out should not exist in the original repository

like image 197
Attila Avatar answered Sep 24 '22 17:09

Attila