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

RE: Re: Multiple Repositories

From: André Pönitz <andre_at_wasy.de>
Date: 2005-10-14 06:59:02 CEST

Frank Gruman wrote:
> dnr@cscholar.com wrote:
> > Is it possible for svn to be setup so that each account
> (website) on a host
> > could have it's own repository if desired?
>
> You could have them set up multiple <Location> directives, one for each
> repository. For ease of keeping them straight, they could create the
> repositories pretty much anywhere, including all in one directory.
>
> <Location /svn>
> DAV svn
> #Assumes that the ~ will be able to populate the username.
> I'm not sure
> of a nice, dynamic way to populate this, if there is such a thing.
> SVNPath /repos_home/~
> AuthType Basic
> blah blah blah
> </Location>

Even more food for thought: If done so, mod_perl helps a lot to
simplify the task of 'maintaining' 'multiple' <Locaction> entries:

<Perl >
#!/usr/bin/perl

my $svnbase = '/data/svn/repository';

opendir(DIR, $svnbase)
  or die "Unable to open SVN repository base '$svnbase'\n";

while (my $project = readdir(DIR)) {
  next unless $project =~ /^[[:alnum:]_\-]+$/;
  $Location{"/repository/$project"} = {
    DAV => 'svn',
    SVNPath => "$svnbase/$project",

    AuthType => 'Basic',
    AuthName => "Subversion repository for project $project",
  ...
    LimitExcept => {
      'GET PROPFIND OPTIONS NAME REPORT' => {
        Require => "group $project-committers",
      }
    },
 ...
  };
}
</Perl>

Andre'

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 14 07:00:43 2005

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.