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

Re: Http access to SVN repository

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-12-27 17:03:57 CET

On Dec 27, 2007, at 05:10, Timothy Murphy wrote:

> Ryan Schmidt wrote:
>
>>> But what exactly does "Location /svn" mean?
>>> Why not "Location /var/www/svn"?
>>
>> Here, "/svn" is a path in web space, whereas "/var/www/svn" is a path
>> in filesystem space on your server's hard disk. A "<Location /svn>"
>> block means "When a user requests a web location under /svn, do
>> this." This particular block says "When a user requests a web
>> location under /svn, pass it off to the Subversion module, which is
>> to find the corresponding repositories under the parent path /var/
>> www/
>> svn/Maths."
>
> OK, thanks.
> I see that make sense now.
>
>> Apparently you have on your server's hard drive a directory "/var/
>> www/
>> svn/Maths", and inside this directory, you have created a number of
>> repositories (including "Penrose").
>>
>> What else do you have in "/var/www/svn" besides "Maths"?
>
> Yes, I have another directory "Computing",
> but don't have any projects in it yet.
> I'm wondering now how I can cater for this?
> and would welcome your advice.

I think most people have either a single repository for everything:

<Location /svn>
        SVNPath /the/repository
</Location>

or multiple repositories hosted under a single directory:

<Location /svn>
        SVNParentPath /that/directory
</Location>

For example, I have two repositories: one which holds all the source
code I've written for various projects, and a second repository for
musical compositions.

You could consider having a single repository containing all your
maths projects, and a second repository containing all your computing
projects.

<Location /svn>
        SVNParentPath /var/www/svn
</Location>

$ ls /var/www/svn/*
/var/www/svn/Computing:
README.txt dav format locks
conf db hooks

/var/www/svn/Maths:
README.txt dav format locks
conf db
$

"Penrose" would then just be a versioned directory within the Maths
repository (and not a filesystem directory on the server's hard
drive, or a separate repository, as you have it now). This makes it
easiest to rename projects or add new projects as needed without
needing admin access to the server. Without knowing more about your
needs, this is the strategy I would recommend at this point.

But if you really do want multiple separate repositories in Maths and
also multiple separate repositories in Computing, this can be
accommodated by using two Location directives. Just pick two
different web space addresses, e.g.:

<Location /svn/Maths>
        SVNParentPath /var/www/svn/Maths
</Location>
<Location /svn/Computing>
        SVNParentPath /var/www/svn/Computing
</Location>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 27 17:04:40 2007

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.