You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jack Bates <ms...@freezone.co.uk> on 2008/10/20 03:16:59 UTC

cannot copy broken symlink

I want to report an issue in Subversion. It is possible to add a broken
symlink to a repository, but it is not possible to copy a broken symlink
in a working copy:

ket% svnadmin create test
ket% svn co file:///home/jablko/test work
Checked out revision 0.
ket% cd work
ket% ln -s bogus test
ket% svn add test
A         test
ket% svn cp test copy
svn: Can't open file 'test': No such file or directory
ket% 

It is possible to copy a broken symlink URL, so something like the
following works after the broken symlink is committed:

ket% svn cp file:///home/jablko/test/test file:///home/jablko/test/copy

I encountered this issue in real life when trying to create a vendor
branch of the symfony project, which contains a broken symlink:

ket% svn cp symfony/vendor hoster/lib/vendor/symfony
[...]
svn: Can't open file
'symfony/vendor/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/lib/symfony': No such file or directory
ket%                                                

I worked around this issue by first committing the vendor branch, then
copying the URL.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: cannot copy broken symlink

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 19, 2008, at 22:16, Jack Bates wrote:

> I want to report an issue in Subversion. It is possible to add a  
> broken
> symlink to a repository, but it is not possible to copy a broken  
> symlink
> in a working copy:
>
> ket% svnadmin create test
> ket% svn co file:///home/jablko/test work
> Checked out revision 0.
> ket% cd work
> ket% ln -s bogus test
> ket% svn add test
> A         test

While this is weird and sounds like a bug, I wanted to point out it  
works fine if you "svn commit" first at this point.

> ket% svn cp test copy
> svn: Can't open file 'test': No such file or directory
> ket%



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org