(Related to: SVN externals repo "is already locked" on update)
I started off with a repository structure like this:
^/
├ module1/
│ ├ foo/
│ ├ bar/
│ ├ baz/
├ module2/
The directory ^/bar
was actually a slightly antiquated copy of module2
, and I decided that it would be better for it to be an external to the modern version, instead of a byte-wise copy:
^/
├ module1/
│ │ (external: "^/module2 bar")
│ ├ foo/
│ ├ baz/
├ module2/
Setting this up went smoothly:
svn co svn://module1 module1
cd module1
svn delete bar
svn propset svn:externals "^/module2 bar" .
Now I want to update the working directory so that I can perform a build & test with the new code before committing.
However, an svn update
result in the following error:
Fetching external item into 'module1/bar'
svn: warning: Working copy 'module1/bar' locked
I tried svn cleanup
in each directory, but a subsequent update still failed with the same error.
Is this because I'm trying to replace a directory with an external by the same name, in the same commit? Is what I want to do possible?
I am using SVN 1.8.