tags:

views:

356

answers:

3

Is there any stable method of having a repo maintained by SVN as a subset of another.

I might have the following:

  1. phpCodeRepo
  2. pyCodeRepo
  3. contentRepo

Such that 1 and 2 can have, as an element of their repo, some data of repo 3. Such that updating 3 would cause an (optional) version increment in 1 and 2. And checking out 1 or 2 will also checkout the right version of 3.

+1  A: 

That's pretty simple: Add 3 folders to your root repository (phpCodeRepo, pyCodeRepo, contentRepo). You might want to look into branching, too.

soulmerge
This doesn't account for the (optional) rev increment...
John Weldon
I require each repo to be an independent subversion base
Aiden Bell
A: 

You may want to implement using hooks

Also, you can pull in other repos when you check out using externals

John Weldon
Thanks, seems good. Wasn't aware an external program could be called. Presumed (wrongly) it was an internal event.
Aiden Bell
+3  A: 

svn:externals might be an answer. But it works only on folder level, so you can share one folder across multiple repositories but you can't do that with single files.

vava
Thanks Vadim; I didn't see your comment before I added this to my post... sorry. +1
John Weldon
Thanks Vadim, this seems useful too!
Aiden Bell
I am keeping Johns at the answer, as the main point is optional relation of content to the other repos on commit, which a quick shell script would allow. :)
Aiden Bell