[PATCH 0 of 1 ] acl: new option to prevent anyone except a given user or group to push changesets in a given branch

elifarley at gmail.com elifarley at gmail.com
Mon May 21 16:08:37 CDT 2012


acl: new option to prevent anyone except a given user or group to push changesets in a given branch

This patch enables a use case suggested by a user (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.

To achieve that, you simply deny branch access to "!givenuser" (or "!@givengroup"). Configuration example below:

#=========================

[acl.deny.branches]
# only 'givenuser' can commit to branch 'default'; 'givenuser' and anyone else can still use any other branch.
default = !givenuser

[acl.allow.branches]
# Empty

#=========================

I haven't created a test case for this yet, but I wanted to show this patch first to get some input.


More information about the Mercurial-devel mailing list