Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn: external failed directory error Can't obtain lock on non-directory 'directory'

Tags:

svn

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?

like image 491
kevins1966 Avatar asked Apr 30 '15 15:04

kevins1966


Video Answer


3 Answers

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.

like image 112
kevins1966 Avatar answered Oct 12 '22 14:10

kevins1966


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.

like image 27
deetz Avatar answered Oct 12 '22 12:10

deetz


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

like image 22
Sieg Avatar answered Oct 12 '22 14:10

Sieg