[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

cannot copy broken symlink

From: Jack Bates <ms419_at_freezone.co.uk>
Date: Sun, 19 Oct 2008 20:16:59 -0700

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_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-20 05:17:36 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.