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

Re: Combining files from different projects into a new project?

From: Branko Čibej <brane_at_apache.org>
Date: Wed, 27 Dec 2017 12:46:36 +0100

On 27.12.2017 12:41, Branko Čibej wrote:
> On 27.12.2017 10:54, Bo Berglund wrote:
>> On Tue, 26 Dec 2017 12:23:45 -0600, Ryan Schmidt
>> <subversion-2016_at_ryandesign.com> wrote:
>>
>>> On Dec 26, 2017, at 02:00, Bo Berglund wrote:
>>>
>>>> In an earlier thread I asked about how I could simulate this in svn
>>>> and to use the "svn externals" system was adviced.
>>>>
>>>> When I am now facing actually doing this I find that (unless I am
>>>> mistaken) the externals only reference whole directories, which is not
>>>> what I want. I need individual files from a couple of source
>>>> directories containing commonly used files in every such project.
>>>>
>>>> Is it actually possible to do this in Subversion?
>>> Yes, file externals are possible in Subversion 1.6 and later.
>>>
>>> http://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html
>>>
>> It seems like the externals have to be directories and not individual
>> files....
> You can only check out directories. Files in the same repository,
> however, can be linked as externals.
>
> You really should take time to read the book, since this the first time
> you're using Subversion. Most of your questions are answered in detail
> there.

Also, as a matter of best practice: with Subversion, it's generally
better to use one large repository than a number of small ones. And
instead of trying to replicate the structure you used with CVS, you
should think about structuring your data so that it fits Subversion's
model better. It takes a bit of getting used to but is definitely worth
it in the long run.

-- Brane
Received on 2017-12-27 12:46:44 CET

This is an archived mail posted to the Subversion Users mailing list.