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

Re: Sharing file inside repository

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-12-11 08:45:38 CET

On Dec 10, 2006, at 12:53, Paulo J. Matos wrote:

> I have a repository with 2 projects e.g. Foo and Bar. I would like to
> share a source code file between Foo and Bar which implements a
> module, so that everytime I change it, it affects both projects. I
> could create a common directory and ask Foo and Bar to use code from
> there but given my current code organization, having them in Foo/src
> and Bar/src is easier. Is there a way to share them? I though about
> creating a link. Does svn handle links well?

The svn:externals feature only works on directories, not files.

Subversion handles symlinks just fine, for operating systems that
support symlinks, which would be pretty much anything except
Microsoft Windows. Just make them using your OS, svn add them, and
check them in like anything else. The symlinks would of course have
to point to something else already checked out in the working copy --
for example a common directory pulled in using svn:externals.

Since Windows does not support symlinks, I know of no such solution.
svn:externals will work, but as I said that's only at the directory

To reply to the mailing list, please use your mailer's Reply To All  
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 11 08:46:44 2006

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.