svn: external failed directory error Can't obtain lock on non-directory 'directory'
Solution 1
It appears if I rename the existing directory and then get the code to a new directory the problem is solved.
Now I understand what those other posts meant.
Solution 2
I cannot really tell what exactly was the problem, but for me the following workaround worked: Remove (or rename if you changed files) the folder in question. Update -> The Folder will be recreated.
If necessary copy the files that you changed before.
Solution 3
I had the same error. The problem was that the directory containing the resources already existed in the path in which it was pointing, it has to be deleted and the svn automatically creates it.
Not works:
Existing directories on destiny path:
version\
- ext1
- ext2
Path that will receive the external:
version\\ext1
Source path of the external:
^/project1/resource/ext1
It works:
Existing directories on destiny path:
version\
- ext2
Path that will receive the external:
version\\ext1
Source path of the external:
^/project1/resource/ext1
Related videos on Youtube
kevins1966
Updated on September 15, 2022Comments
-
kevins1966 about 1 year
I have just loaded some old files and directories of an old project onto my PC from SVN to debug an issue.
I am getting the following when trying to update the working directory:
external failed directory error Can't obtain lock on non-directory 'directory'
I have tried
svn cleanup
as suggested by some posts but to no avail.Anyone got any pointers as to how I might resolve this?
-
Mr767267 almost 7 yearsHi, I am facing the same issue, could you please care to post the exact script changes so that I am sure what it means when you say "rename the existing directory and the get the code to new directory"
-
mgouin over 6 yearsSame here... @kevins1966, could you share what you did?
-
wimh over 5 yearsto clarify; when you get the error message
Can't obtain lock on non-directory 'path\to\module_abc'
, then renamemodule_abc
tomodule_abc.bak
, and do a new svn update of the main project. You will get a new copy of module_abc.