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

Re: Using Regex in apache dav right access file

From: David Andersen <dma_at_beyondunreal.com>
Date: 2004-09-25 02:32:59 CEST

Someone could just link PCRE or something into the code to allow for regular expressions. You'd need to extend the syntax to allow for selection of globbing-style matching, case-sensitive regex matching, case-insensitive regex matching, and possibly the ability to restrict it to a range/list of revision numbers. :-)

That would cover just about everything.

You could do something like:

        {repository:revisionlist:matchtype:pattern}
        * =

and just process them in order.

                # Blacklist revisions 1-5 and 24. Some fool committed
some pr0n. It'll need to be removed later.
                {myproject:1-5,24:g:/}
                * =

                # Blacklist anything containing "confidential" in the
directory path except to admins
                {myproject:*:ri:/.*confidential.*/}
                admin = rw

There are probably other proposals that could be made.

Ben Collins-Sussman wrote:

>
> On Sep 24, 2004, at 4:16 AM, Miguel COSTA wrote:
>
>> Hi,
>>
>> I want to now if it was possible to use regex in the dav configuration
>> file in the path selection.
>>
>
> Nope, no regexes or wildcards are allowed in the [sections]. It would
> be a nice feature, though. I think others have asked for it.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 25 02:33:18 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.