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

Re: Projects sharing multiple directories

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Mon, 24 Mar 2008 17:04:33 -0500

On Mar 19, 2008, at 12:43, Farrier, John [USA] wrote:

> I am trying to set up a project that has a core svn archive, and
> many sub-projects (plug-ins). Each of the sub-projects share the
> directory tree with the core. I looked at the svn:externals, but
> that did not seem to address this problem. Consider the following
> as a single svn project directory structure:
>
> Program
> Source
> Core
> Plugin1
> Plugin2
> Inputs
> CoreInputs
> Plugin1Inputs
> Plugin2Inputs
>
> Then, I want to be able to separately manage a third plug-in that
> may not get distributed with the rest of the program, but just to
> some folks. So, I want a second svn project to manage it. That
> being said, I want the final directory structure to look like:
>
> Program
> Source
> Core
> Plugin1
> Plugin2
> *Plugin3
> Inputs
> CoreInputs
> Plugin1Inputs
> Plugin2Inputs
> *Plugin3Inputs
>
> Now, this single directory structure contains two overlapping svn
> projects. Is there a way to manage these two projects
> independently via svn, but allow them to co-exist in the directory
> tree like this? I would expect the svn repository to present just
> these two projects if all worked as I want...
>
> svn->Program
> svn->ProgramPlugin3

svn:externals is the way I would do this.

Your repo structure could be like this:

Program
       Source
             Core
             Plugin1
             Plugin2
       Inputs
             CoreInputs
             Plugin1Inputs
             Plugin2Inputs
ProgramPlugins
       Plugin3
             Source
             Inputs

On Program/Source you would set the svn:externals property to
"Plugin3 http://url/to/repo/ProgramPlugins/Plugin3/Source" and on
Program/Inputs you would set svn:externals to "Plugin3Inputs http://
url/to/repo/ProgramPlugins/Plugin3/Inputs"

When you check out http://url/to/repo/Program you will get the
directory structure you want.

> When sitting at the "Program" level, I would love for svn to report
> differences in both the core project and the Plugin3 project.

This might not happen, however. You'll have to commit changes to
Plugin3 separately from changes to Program.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-25 13:30:42 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.