On Sep 1, 2005, at 14:07, Annick Collet wrote:
> In the acces right file svnperms.conf , can someone explain me the
> syntax of the command .
> So what is the difference between 1 and 2 :
>
> 1
> trunk/project1/.+ = @project1(add,remove,update)
> trunk/project2/.+ = @project2(add,remove,update)
>
> 2
> trunk/project1/[^/]+/ = @project1(add,remove,update)
> trunk/project2/[^/]+/ = @project2(add,remove,update)
The part before the "=" is a regular expression. Regular expressions
are a very powerful way to match parts of text, but are also pretty
difficult to get the hang of. Documentation is plentiful, but also
long, if you want to understand it all.
Just enough to understand what's written here:
. matches any character.
+ matches one or more of the preceding.
So .+ matches one or more of any character.
Square brackets define set of characters, and matches any one of them.
A ^ at the beginning of a set of characters negates it, matching
anything that's not in the range.
So [^/]+ matches one or more chacacters that are not slashes.
So, the first set of rules above allows you to add, remove or update
anything within project1 or project2, while the second set allows you
to add, remove or update anything inside any directory inside
project1 or project2, but not anything directly inside project1 or
project2's root directory.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 1 20:38:51 2005