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

Re: how to make svn _follow_ symbolic links?

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Mon, 20 Jul 2009 16:31:23 -0500

On Jul 20, 2009, at 16:06, Misha Aizatulin wrote:

>> Take a look at <http://svnbook.red-bean.com/en/1.5/
>> svn.advanced.externals.html>.
>> This is really what you probably want to do.
>
> Thanks for your suggestions! I know of svn:externals, but as I
> said in
> my mail, this approach is too heavyweight for my situation.
> First, the files I usually want to share are something like a
> bibliography or a macro file for tex documents, so it doesn't feel
> right
> to create a separate repository for them.

You do not need to create a separate repository to use externals.
Externals can reference items in the same repository. The externals
syntax even (as of Subversion 1.5) includes several shortcuts to make
this easier, including allowing you to use various relative paths
instead of needing to specify the complete repository URL.

> Second, the set of files I want to share is very fluid: I might want
> to share the file x between repositories A and B and y between B and C
> and these sharings may change any time. Working at repository level
> would not give me enough granularity.

You can change your externals definition any time you need to make
these changes.

> Third, I usually work on repositories provided by different
> unrelated
> people, so I don't have any personal long-time repository I could
> use. I
> also see no reason to ask those people to set up a separate repository
> for me.

I see no reason for that either. :)

> All I want is to be able to use a single file from my hard drive in
> several working copies, that's all! At the moment I can do it with
> hardlinks, but they have their limitations, including that they don't
> work for folders.

When you say "from your hard drive", do you mean that the file is
unversioned, or is it in fact in a repository somewhere? If
unversioned then I can't suggest a solution, but as long as the file
is in a repository, then externals could be the answer.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2372742

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-20 23:32:15 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.