[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: Mauricio Culibrk <mauricio_at_test.infohit.si>
Date: 2006-03-25 22:19:33 CET

Hi!

Thanks for the ultra fast response!

...I feel like an idiot... :| almost...

the setup is working via browser access, great, but svn access IS NOT!

I'm (again) getting error 405 and 301 when try to access the
repository by svn client (like 1000s times before... :( )

I spent quite some time (nights?) figuring how to do something similar
wit no success...

Anyway, I first worked with svn 1.2.3 and recently upgraded to 1.3.0
hoping this will make some difference... but it didn't!

Any more ideas??

THANKS!

MCulibrk

On Sat, 25 Mar 2006 21:28:15 +0100
  Ryan Schmidt <subversion-2006Q1@ryandesign.com> wrote:
> 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 22:20:18 2006

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.