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

Re: symlinks on Windows

From: Branko Čibej <brane_at_wandisco.com>
Date: Thu, 07 Nov 2013 12:12:10 +0100

On 07.11.2013 11:36, Philip Martin wrote:
> Ben Reser <ben_at_reser.org> writes:
>
>> On 11/5/13 8:52 AM, Randy Defauw wrote:
>>> Any thoughts regarding supporting symlinks on Windows? Windows has supported
>>> symlinks since Vista:
>>>
>>> http://msdn.microsoft.com/en-us/library/windows/desktop/aa365680(v=vs.85).aspx
>>>
>>> Supporting cross-platform symlinks where possible will ease some compatibility
>>> pain for cross-platform development.
>> Probably the biggest issue here is that by default creating symbolic links
>> requires administrator access on Windows.
> Another issue is that CreateSymbolicLink also has a dwFlags parameter
> that needs to be set to zero for file targets and
> SYMBOLIC_LINK_FLAG_DIRECTORY for directory targets. I don't know what
> happens if the flag has the "wrong" setting. Does it only affect the
> delete operation? Does Subversion have to update the flag as the target
> changes? Does Subversion have to store the flag as well as the target
> path in the repository?

Oh duh ... forgot about that. This is yet another instance of brilliant
API design.

And then there's this:

http://stackoverflow.com/questions/229643/how-do-i-overcome-the-the-symbolic-link-cannot-be-followed-because-its-type-is

-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2013-11-07 12:13:16 CET

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