[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: Thorsten Schöning <tschoening_at_am-soft.de>
Date: Thu, 7 Nov 2013 10:24:16 +0100

Guten Tag Ben Reser,
am Donnerstag, 7. November 2013 um 09:46 schrieben Sie:

> I think nobody has put the effort into figuring out the appropriate way of
> dealing with this. The obvious thing to do would be to fall back to the
> current behavior if the permission isn't available.

Subversion could fall back to using junctions if the link target is a
directory or hardlinks if it is a file. Junctions don't support links
to things like network shares, though, but it's better than nothing
and will surely cover 99% of the use cases. Hardlinks have the same
caveat of course and suffer form recreation of files, like when a file
gets reverted the former created hardlink to it will get invalid. But
in theory as Subversion should normally be the on doing the revert it
could beforehand get all hardlinks to the file and recreate those
after the revert. Getting all hardlinks to a file is fast operation
since Vista.

Of course it sucks that symlinks are restricted on Windows, opposed to
junctions and hardlinks, especially that Windows itself doesn't use
symlinks that much at all, but relies heavily on hard links instead.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening_at_AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
Received on 2013-11-07 10:24:58 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.