On Thu, Aug 09, 2001 at 10:37:58AM -0500, Ben Collins-Sussman wrote:
> Ben Collins-Sussman <sussman@collab.net> writes:
>
> > Is there some way to write a <Location> directive which maps to a
> > "directory of repositories"?
Nope.
Each repository (at this point in time) requires its own SVNPath
configuration. We will probably want to add something later to do the
multiple-repository thing (I'm thinking SourceForge would not appreciate
tens of thousands of config lines :-).
I did not rely on the standard Apache aliasing to map URLs to filesystem
locations because we want to be absolutely sure that the raw repository
files cannot be accessed via standard Apache servicing. Thus, the use of
SVNPath.
> If there's no way to do this, Karl and Mike have offered three other
> potential solutions:
>
> 1. Define N specific repositories in httpd.conf, and keep adding
> them every time we write a new test.
>
> 2. Define a single repository in httpd.conf, and have each test
> 'overwrite' this location with its own private repository. If a
> test fails, copy the private repository to a post-mortem area
> before it's blown away by the next test.
>
> 3. Create a "repositories" directory location in httpd.conf.
> Place a .htaccess file in this directory that contains an
> ever-growing number of <Location> pointers to repositories. When
> each test runs, it creates its own repository within the
> directory and then appends a new <Location> to .htaccess.
>
> Solution #3 seems the most attractive, assuming it works. The only
> thing better than this is my original idea.
I like solution (2), as it keeps everything simpler. Also, having an
explicit post-mortem area is nice. Lastly, it means that "downstream"
developers can more easily set up a test environment -- they have a single
Location to configure.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:35 2006