I have a project on my Windows 7 machine that contains symlinks. When I try to commit the project to an SVN repository TortoiseSVN fails with "Symbolic links are not supported on this platform". That's fine and I would like TortoiseSVN to ignore the symlinks. But how? I played around with the ignore property but since in Windows symlinks have no special names or extensions (they just look like the file they're pointing to) I couldn't succeed.

Could anyone help me?

Thank you in advance.

link|improve this question
Now I found out that symlinks have the svn:special property. Now it's a question how one can ignore all special files... – Piedone Aug 23 '10 at 23:04
Another workaround would be to exclude 0 byte-sized "files". AFAIK filtering on file size is not supported by TortoiseSVN so maybe the best solution would be to write a script that adds all symlinks to the ignore list one by one... – Piedone Aug 23 '10 at 23:38
feedback

1 Answer

Windows shortcuts are .lnk files, so you could try setting svn:ignore to:

*.lnk
link|improve this answer
1  
I think you mix something up. What Piedone is talking about are symlinks created using mklink. – Andreas Aug 23 '10 at 21:10
You are probably right. I just read 'shortcuts'. Thanks! – Richard Fearn Aug 23 '10 at 21:52
Thank you for your reply! Actually I was mixing up the terminology (I have edited the post to clear thinks up). As Andreas pointed out I have indeed meant the symlinks made by mklink. Since these links "look" the same as the file they're pointing to, I have no idea how one can filter them out... – Piedone Aug 23 '10 at 22:44
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.