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

Re: Symlink handling in svn status broken

From: Aleksey Nogin <aleksey_at_nogin.org>
Date: 2005-09-22 20:21:30 CEST

On 22.09.2005 11:06, Philip Martin wrote:

> Phillip Susi <psusi@cfl.rr.com> writes:
>
>
>>Try this:
>>
>>svnadmin create repo
>>svn co file://`pwd`/repo wc
>>svn mkdir wc/trunk
>>svn ci -m "" wc
>>cd wc
>>mv trunk ..
>>ln -s ../trunk trunk
>>svn st
>>
>>The key thing is to be in the wc directory which has a .svn/entries
>>file that says it should have a child directory named trunk. Trunk
>>gets moved elsewhere and replaced with a symlink, then when you do an
>>svn st, it thinks that trunk is a file but should be a directory, so
>>it reports it as a collision.
>
>
> I'm not sure that qualifies as a bug, you are disrupting the versined
> filesystem. Subversion assumes that versioned files are files and
> that versioned directories are directories. If you deliberately break
> those assumptions it's not surprising things don't work.
>
Still, sometimes it's very useful to be able to relocate a part of a wc
(say, to a different partition), replacing it with a symlink. IMHO it
would be very nice if this would be supported.

-- 
Aleksey Nogin
Home Page: http://nogin.org/
E-Mail: nogin@cs.caltech.edu (office), aleksey@nogin.org (personal)
Office: Moore 04, tel: (626) 395-2200
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 22 20:26:06 2005

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

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