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

Re: Configuration tips - hierarchical repositories

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-03-25 21:28:15 CET

On Mar 25, 2006, at 20:42, Mauricio Culibrk wrote:

> 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
> etc
>
> * denotes actualy repositories

[snip]

> 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

You have made this very complicated when it is really very simple.

First, do not svnadmin create /mnt/svn/root. There's no need for that
or the virtual directories you've put into it.

Simply create as many repositories as you like under /mnt/svn. Set up
Apache this way:

<VirtualHost *:80>
        ServerName www.example.com
        DocumentRoot /wherever
        RedirectMatch ^/repos$ http://www.example.com/repos/
        <Location /repos/>
                DAV svn
                SVNParentPath /mnt/svn
                SVNListParentPath on
        </Location>
</VirtualHost>

SVNListParentPath is available as of Subversion 1.3.0. There is no
equivalent for svnserve.

---------------------------------------------------------------------
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:29:04 2006

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