[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: Bo Berglund <bo.berglund_at_gmail.com>
Date: Wed, 27 Dec 2017 11:18:19 +0100

On Wed, 27 Dec 2017 06:23:29 +0000, Lorenz <lorenznl_at_yahoo.com> wrote:

>Ryan Schmidt 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
>
>
>but not accross different repositories
>
>from: http://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html
>>File externals cannot refer to files from other repositories. A file
>>external's URL must always be in the same repository as the URL that
>>the file external will be inserted into.

Does this mean thta I can forget about externals then?
I imported the CVS repositories by creating a master repository for
each existing CVS repository and then cvs2svn was set to import each
top level directory as a separate item. I am very confused about the
terminology used here since sometimes documentation exeplifies a
repository by a single project (like my top level CVS directories) and
sometimes it looks like they talk about "projects" within a single
repository.
Which limitation is there really in the externals case?

But then again, as I feared when reading the docs, it seems like an
external can only be a directory and not a file within a directory...

It seems impossible to check out a single file from a svn
repository...

-- 
Bo Berglund
Developer in Sweden
Received on 2017-12-27 11:18:44 CET

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.