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

Re: How to create a link that works between OS X and Ubuntu

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Mon, 25 Apr 2011 22:51:39 -0500

On Apr 25, 2011, at 22:27, David Chapman wrote:
> On 4/25/2011 7:38 PM, richard Cavell wrote:
>> Further experimentation shows that symbolic links work (ln -s autobot a for the first command). Are hard links supposed to work?
>
> The hard link simply creates a new name for the file, which is probably operating system dependent (you didn't describe the build process completely).

Yes he did:

>>> From: richard Cavell
>>> Sent: 04/26/11 10:36 AM
>>> To: users_at_subversion.apache.org
>>> Subject: How to create a link that works between OS X and Ubuntu
>>>
>>> Hi everyone. I'm developing a program on Ubuntu 10.10. The directory in which my project lives is part of my PATH. The executable that is built is called 'autobot'.
>>>
>>> I type:
>>>
>>> ln autobot a

> Subversion won't know the difference between the name "autobot" and the name "a"; each will look like an ordinary file. A symbolic link, however, is a different object type and Subversion can store it as such.

That's correct, and that was the problem. I was reading Richard's message trying to figure out why it wasn't working, and it's exactly that Subversion doesn't (can't) realize a hardlink is a link. Use symlinks if you want to store them in the repository as links.
Received on 2011-04-26 05:52:25 CEST

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.