Acl extension to prevent pushing into default branch

Felix Dorner fdorner at tuenti.com
Fri Jan 7 04:34:36 CST 2011


2011/1/7 Lasse Vågsæther Karlsen <lasse at vkarlsen.no>:
> Access rights is usually done on a per-repository level.
> Couldn't an alternate workflow work? You create a clone of the repository
> with more open access rights, and let those people with central commit
> access do the pulling and pushing between the two?

Sounds good, and I'm sure we'll do something like that in the future.

For now I have to stick with the acl solution. It looks like this works:

[hooks]

pretxncommit.acl = python:hgext.acl.hook
pretxnchangegroup.acl = python:hgext.acl.hook

[acl]
sources = serve

[acl.allow.branches]
default = @ubergeeks


More information about the Mercurial mailing list