You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Christian Convey <ch...@gmail.com> on 2007/09/12 17:27:43 UTC

dav_svn.authz : how to "wildcard" a rule?

In a project I'm administrating, I've been asked to ensure that a
certain directory is only visible to certain individuals.  For this
discussion I'll call it "/foo/bar/".

But in our project, we're encouraging people to use branches.  So I
want "/foo/bar" to be restricted regardless of whether it's actually
"/trunk/foo/bar" or "/branches/bug123/foo/bar".

Is there any *good* way I can do this that doesn't require me to edit
my dav_svn.authz file every time someone wants to create a branch?

I guess I could maybe do it with hooks, but I'd much rather be able to
put something in my .authz file that looks like:

[my-repos:*/foo/bar]
* =
spider_man = rw

Any suggestions?

- Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: dav_svn.authz : how to "wildcard" a rule?

Posted by Bjørnar Skinnes <bs...@broadpark.no>.
I was just searching on this exact problem myself, found some useful 
patch here: http://svn.haxx.se/dev/archive-2005-02/0631.shtml
but if you look at the replies, the patch dissected and found under par. 
But it might do the trick if you are a daredevil?
-Bjørnar

Christian Convey wrote:
> In a project I'm administrating, I've been asked to ensure that a
> certain directory is only visible to certain individuals.  For this
> discussion I'll call it "/foo/bar/".
>
> But in our project, we're encouraging people to use branches.  So I
> want "/foo/bar" to be restricted regardless of whether it's actually
> "/trunk/foo/bar" or "/branches/bug123/foo/bar".
>
> Is there any *good* way I can do this that doesn't require me to edit
> my dav_svn.authz file every time someone wants to create a branch?
>
> I guess I could maybe do it with hooks, but I'd much rather be able to
> put something in my .authz file that looks like:
>
> [my-repos:*/foo/bar]
> * =
> spider_man = rw
>
> Any suggestions?
>
> - Christian
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org