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

Re: Subversion: list of respositories

From: Geoff Hoffman <ghoffman_at_cardinalpath.com>
Date: Sun, 17 Jul 2011 19:48:04 -0700

On Sat, Jul 16, 2011 at 11:06 PM, Andy Canfield <andy.canfield_at_pimco.mobi>wrote:

> **
> How do you get a list of repositories from svnserver? The only way I can
> figure out is:
> * ssh username_at_example.com
> sudo bash
> ls -ld /var/svn/**
> And, of course, this makes an assumption about where on the server the
> repositories are located. There 'ought' to be an easier way.
>

Andy,
I read (skimmed) all your posts, and I'm a little confused but I think I
know where you're going. I'm not sure if you're using Apache to serve your
repositories. If you are, you should check out this:
http://davidwinter.me/articles/2006/03/03/access-control-for-subversion-with-apache2-and-authz/
and this
https://help.ubuntu.com/community/Subversion

I recently followed the blog above and got everything setup how I think you
want it. You can control user access to multiple repos in three ways, the
blog explains it all, except one thing. I found that this is for
folder-level control on one repository:

[/]
@team = r
bob = rw

[/wowapp/trunk]
@team = r
@devteam = rw
brenda = rw

In my authz control file, multiple repositories are done like this (note the
repo name and colon):

[repoA:/]
@team = r
bob = rw

[repoB:/]
@team = r
@devteam = rw
brenda = rw

I also put websvn on it, and use the configuration option

$config->useAuthenticationFile('/path/to/your/authz/file');
which I found on this stackoverflow
QA<http://serverfault.com/questions/13853/how-do-i-restrict-repository-access-via-websvn>
.
http://serverfault.com/questions/13853/how-do-i-restrict-repository-access-via-websvn
Received on 2011-07-18 04:48:45 CEST

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.