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

RE: windows junction points vs. SVN_67460

From: Bert Huijben <rhuijben_at_sharpsvn.net>
Date: Wed, 11 Nov 2009 11:19:09 +0100

> -----Original Message-----
> From: Stefan Sperling [mailto:stsp_at_elego.de]
> Sent: woensdag 11 november 2009 0:09
> To: Ryan Schmidt
> Cc: Bert Huijben; 'Bob Archer'; 'Ignacio G. T.';
> users_at_subversion.tigris.org
> Subject: Re: windows junction points vs. SVN_67460
>
> On Tue, Nov 10, 2009 at 05:00:03PM -0600, Ryan Schmidt wrote:
> > On Nov 10, 2009, at 10:46, Stefan Sperling wrote:
> >
> > > On Tue, Nov 10, 2009 at 05:40:56PM +0100, Bert Huijben wrote:
> > >
> > >> When you create a symbolic link on Windows you have to pass
> whether
> > >> the link will point to a directory or to a file.
> > >
> > > NTFS junctions also?
> >
> > As far as I can tell, NTFS junctions are for directories only, and
> > cannot be used for files.
>
> Right, so all of this has quirks...
>
> Well, I guess APR could always add an extra API we could use,
> without causing the compatibility problems Bert mentioned.
>
> The existing API would still be present and only support good
> old UNIX symlinks, but new functions could be added to deal
> with the various quirky windows "equivalents" (excuse my sarcasm :)
>
> But I'm not an APR dev so I don't know what they would think of
> this idea.

But then back to subversion: Where do we get the information on where the
symlink points to?

Our current storage just stores a path (without any canonicalization). If
the path points to "/etc/something" would that be a file or a directory?

It would work for symlinks that point in the repository or to existing
files, but getting it to work requires backend changes. (Probably Subversion
2.0... or at least a different new storage model for new symlinks)

Note that we don't have to wait for APR for these features. There are many
more Windows specific code paths in our code and adding a few more would not
harm us. It's just that we don't have the necessary information (+probably
authorization) to create a working symlink.

        Bert

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2416457

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-11 11:20:26 CET

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.