Improvement to ACL extension?

elifarley elifarley at gmail.com
Thu Jul 26 11:42:20 CDT 2012


Peter Brogren wrote
> 
> I have seen people trying to set up the basic rule 
> of allowing a specific set of users access to push into the default 
> branch and all others can push to wherever they want EXCEPT the default 
> branch.
> 

Please see the acl docs as of changeset d7b608149f6c.

This changeset adds the "!" prefix, which can be added to a user or group
name to invert the sense of the match.

With that, you can easily prevent anyone except a given user or group to
push changesets in a given branch or path.

This use case has been suggested by Julien Bonnet:
There's a branch that only a given user (or group) should be able to push
to, and you don't want to restrict access to any other branch that may be
created.

With the "!" prefix, you simply deny access to "!givenuser" (or
"!@givengroup").

The acl docs have some usage examples.




--
View this message in context: http://mercurial.808500.n3.nabble.com/Improvement-to-ACL-extension-tp3688345p3991089.html
Sent from the Development mailing list archive at Nabble.com.


More information about the Mercurial-devel mailing list