You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by lejeczek <pe...@yahoo.co.uk> on 2015/02/26 17:47:57 UTC

variables in AuthzSVNAccessFile - a shortcut?

hi everybody

as a novice I understand I'm looking for shortcuts, probably 
being not the first one I'd have this question:

does Subversion implement any variables in it's configuration?
first case to exercise this scenario would be AuthzSVNAccessFile
could one have

[REPO_NAME:/_$user]
_$user = rw

naturally I'm thinking here of login/logged in user, via http
many thanks.

Re: variables in AuthzSVNAccessFile - a shortcut?

Posted by lejeczek <pe...@yahoo.co.uk>.
automatic creation of the folders/repos would be nice - I 
can imagine web based shared and/or free SVN solution must 
be having something like it already.
I assumed that for smaller setups, a scenario where users 
have their own repo with full rights next to a shared 
repo(s) with different permission, will be very common.
Then simply permission file instead of:

[REPO_NAME:/me]
me = rw
[REPO_NAME:/you]
you = rw
etc..

would be like I thought it could be, just permission, I'll 
try to tamper with hooks,
thanks.

On 26/02/15 20:42, Eric Johnson wrote:
> So far as I know, there are no variables in the file. If 
> you've got any needs that lead to wanting "variables" 
> (other than the already supported groups), then perhaps 
> you want to generate the file? That's an approach we take 
> at my company.
>
> If you take the approach of generating the file, then I 
> don't think there are any per-request variables that matter.
>
> As for your specific idea, it looks like you want to have 
> "per-user" folders in repositories. Since those folders 
> aren't created by magic, perhaps you want to reserve their 
> creation to someone like an administrator, and catch their 
> creation in a post-commit script, and regenerate your 
> access file?
>
> Eric.
>
>
> On Thu, Feb 26, 2015 at 8:47 AM, lejeczek 
> <peljasz@yahoo.co.uk <ma...@yahoo.co.uk>> wrote:
>
>     hi everybody
>
>     as a novice I understand I'm looking for shortcuts,
>     probably being not the first one I'd have this question:
>
>     does Subversion implement any variables in it's
>     configuration?
>     first case to exercise this scenario would be
>     AuthzSVNAccessFile
>     could one have
>
>     [REPO_NAME:/_$user]
>     _$user = rw
>
>     naturally I'm thinking here of login/logged in user,
>     via http
>     many thanks.
>
>


Re: variables in AuthzSVNAccessFile - a shortcut?

Posted by Eric Johnson <er...@tibco.com>.
So far as I know, there are no variables in the file. If you've got any
needs that lead to wanting "variables" (other than the already supported
groups), then perhaps you want to generate the file? That's an approach we
take at my company.

If you take the approach of generating the file, then I don't think there
are any per-request variables that matter.

As for your specific idea, it looks like you want to have "per-user"
folders in repositories. Since those folders aren't created by magic,
perhaps you want to reserve their creation to someone like an
administrator, and catch their creation in a post-commit script, and
regenerate your access file?

Eric.


On Thu, Feb 26, 2015 at 8:47 AM, lejeczek <pe...@yahoo.co.uk> wrote:

> hi everybody
>
> as a novice I understand I'm looking for shortcuts, probably being not the
> first one I'd have this question:
>
> does Subversion implement any variables in it's configuration?
> first case to exercise this scenario would be AuthzSVNAccessFile
> could one have
>
> [REPO_NAME:/_$user]
> _$user = rw
>
> naturally I'm thinking here of login/logged in user, via http
> many thanks.
>