After adding a symbolic link in a svn repository I keep receiving an error inside of that directory


I created a symbolic link from /www/dir2/ to /home/dir2/
I then added it to the repository ( svn add /www/dir2/ )
Now if I go into that directory, and try to do anything with svn in there I receive a "svn: warning: '.' is not a working copy" error.
If I try to add a subdirectory (svn add /www/dir2/dir5 ) I receive the error:
svn: 'dir2' is not a working copy
svn: Can't open file 'dir2/.svn/entries': No such file or directory
I tried committing the directory addition and that worked fine

From the log:
Changed paths:
A /www/dir2
svn pl dir2/
Properties on 'dir2':

Any help would be appreciated. Thanks!

Best Solution

Subversion does not follow symbolic links. When a symlink is committed, it is stored in the database as a regular file with the svn:special property set. See the manual for more information.

If you want to add that directory to the repository, you will have to move (not symlink) it in to your working copy and then add it.

Related Question