[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: David Weintraub <qazwart_at_gmail.com>
Date: Mon, 20 Jul 2009 10:54:53 -0400

Sounds like a job for "svn:externals"!

This is exactly what "svn:external" does. You can take a directory
that is included in more than one project and make it its own sub
project. For example, my repository looks like this:

svn://repos/framework/web/trunk
svn://repos/framework/web/tags/1.0
svn://repos/projects/foo/trunk
svn://repos/projects/bar/trunk

I want to include the web framework revision 1.0 in both my foo and
bar projects. In each of these projects, I add the following
svn:external property on the trunk's directory:

    ^/framework/web/tags/1.0 web-framework.

Now, when I do:

   $ svn co svn://repos/projects/foo/trunk foo-trunk

I get a directory called web-framework that contains all of the files
in svn://repos/framework/web/tags/1.0.

If I do this:

    $svn co svn://repos/projects/bar/trunk bar-trunk

I get the same set of web framework files as I got in foo.

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.

A little hint though: Normally, when you do this, you want to depend
upon a particular tag or revision in that external project, and not to
the HEAD of the trunk or branch.

The reason is very simple: Let's say I create a release of foo REL-1.0
that linked to svn://repos/framework/web/trunk as my svn:external
project. If I make a change in svn://repos/framework/web/trunk, I am
making a change in my release tag REL-1.0 for foo which is not what I
want to do.

On Sun, Jul 19, 2009 at 3:57 PM, Misha Aizatulin<avatar_at_hot.ee> wrote:
> Hello,
>
>  I have the following situation: I have some files on my disk that I
> would like to be included in several repositories. At the same time
> creating a separate repository for those files is not possible (and
> would be an overkill). A natural solution in such a situation is to use
> symlinks, but svn does not want to follow them.
>
>  Shall I file a bug report?
>
>  The only mention of the same problem so far seems to be
> http://svn.haxx.se/users/archive-2006-07/0114.shtml
>  but the problem did not really get addressed there.
>
> Best,
>  Misha
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2372455
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2372612
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-20 16:55:58 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.