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

Configuration tips - hierarchical repositories

From: Mauricio Culibrk <mauricio_at_test.infohit.si>
Date: 2006-03-25 20:42:28 CET

Hi folks!

I'm loosing my patience experimenting and trying different setups so I
decided to bother a little with my questions....

I would like to organize and access my repository structure in a
hierarchical way. Besides that, I would like to have separate
repositories per project groups. Somethink like this:

url.of.svn/repos *
             +---- group1 *
             | +--- dir1
             | +--- dir2
             +---- group2 *
             | +--- dir1
             | +--- dir2
             | +--- dir3
             +---- group3 *
             | +--- dir1
             | +--- dir2

* denotes actualy repositories

So, when accessing the server with (svn/http)://url.of.svn/repos I
practically get the list of available repositories in a user friendly
When accessing (svn/http)://url.of.svn/repos/group1/dir1/abc I
acctually access the real repository group1.

I acctually managed to make this working with SVN / SVN+SSH protocol
but I have abnormal troubles setting this up for http/https access via
Apache (v2.x.x). (I explain the setup at the end)

I tried various ways with <Location>, <LocationMatch>,<Directory>
directives helped by some RewriteRule etc with no success.

I found some hints in a message posted by Martin Lie
(http://svn.haxx.se/users/archive-2004-07/0639.shtml) where the same
problems with Location/Directory and regexp are mentioned.

Does anybody have some hint/idea on hof to make this working with
Apache and dav_svn??? Please... I'm desperate...

Some explanations about the currently working svn:// setup:

I setup the "root" repository in /mnt/svn/root (svnadmin create
/mnt/svn/root) and the "sub"repositories in /mnt/svn/root/group1,
/mnt/root/group2... (acctually, in /mnt/svn/group1, group2... with
links in /mnt/svn/root pointing to them)
Then I created directories (using svn - well, tortoisesvn) for each
"subrepository" in the root repository. In this way I have identical
structure in the root repository and file system.

This is working as expected by simply "mapping" the request url to
real repositories....
svn://url.to.svn/ "selects" the root repository showing versioned
"directories" while browsing (from the GUI of tortoisesvn, repo
browser for example) to svn://url.to.svn/group1 "selects" the
"underlaying" repository /mnt/svn/root/group1

Kind regards,

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Mar 25 21:08:26 2006

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