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

Regular expression in the access file

From: Giulio Troccoli <giulio.troccoli_at_uk.linedata.com>
Date: Wed, 30 Sep 2009 15:03:34 +0100

Is it possible to use regular expression in the access file?

I am serving a repository using Apache 2.2.11 and Subversion 1.6.5. My configuration has the following

AuthUserFile /usr/local/apache2/etc/svn-test.passwd

My repository has the following structure

<product>/<version>/<test|cand>

So something like

dip
 |--1.10
     |---test
     |---cand
 |--1.11
     |---test
     |---cand
 |--1.20
     |---test
     |---cand

The access for all tests area the same and the access to all cands are the same too.

My access file looks like

[/]
* = r
[/dip/1.10/test]
@dev = rw
[/dip/1.10/cand]
@test = rw
[/dip/1.11/test]
@dev = rw
[/dip/1.11/cand]
@test = rw
[/dip/1.20/test]
@dev = rw
[/dip/1.20/cand]
@test = rw

I know that I could reorganize the repository so that I could write the access file as

[/]
* = r
[/dip/test]
@dev = rw
[/dip/cand]
@test = rw

But this would be a huge task which I am not willing to do, as I'd rather have a bigger access file instead.

But I was wondering if I could use some regular expression, so that I could use

[/]
* = r
[/dip/*/test]
@dev = rw
[/dip/*/cand]
@test = rw

Of course the * is a too generic expression. I have actually tried with * and it doesn't seem to work, but maybe it's just because it should be quoted, or * is not valid, or some other reason.

I didn't find anything about this in the archive, and before embarking in finding the correct expression I wanted to check with you guys if it is at all possible. The book doesn't say anything either way.

Thanks
Giulio

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402096

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-30 16:04:23 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.