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

problems with soft links on Windows

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 01 May 2008 19:21:44 +0200

Hi,

Windows supports soft links as you may know. Those are different than
the shortcut files. But they only work on NTFS.

When using svn on such a softlink, it doesn't work.

* create a softlink like this:
   mklink /D c:\dirsoftlink c:\workingcopy
* svn info c:\dirsoftlink
   svn: 'c:\' is not a working copy
   svn: Can't open file 'c:\.svn\entries': (error message in OS language)

This only happens with commands that expect a folder. Commands that can
work on files (usually) work like 'svn st'.

The problem is in libsvn_subr/io.c, the function
map_apr_finfo_to_node_kind() assumes for a filetype of APR_LNK that it's
in fact a file, but such softlinks are not files but point to a folder.

Is there a reason that links are assumed to be files?

Or is there a way to determine if the link points to a file or a folder?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

Received on 2008-05-01 19:22:02 CEST

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