[PATCH RESEND] hgweb: add group authorization

Matt Mackall mpm at selenic.com
Fri Feb 22 11:17:34 CST 2013


On Fri, 2013-02-22 at 16:02 +0100, Markus Zapke-Gründemann wrote:
> Markus Zapke-Gründemann schrieb:
> > Markus Zapke-Gründemann schrieb:
> >> # HG changeset patch
> >> # User Markus Zapke-Gründemann <markus at keimlink.de>
> >> # Date 1360231888 -3600
> >> # Node ID d2dbfdee987a51efb6f4ad69e3b116aa22553326
> >> # Parent  2fefd1170bf269e26bb304553009f38e0117c342
> >> hgweb: add group authorization.
> > Here is a description how to use group authorization. This is also part of the
> > patch for the documentation.
> > 
> > 
> > With the patch it is possible to use groups together with usernames in the
> > allow_read, allow_write, deny_read and deny_write lists. A group name is
> > prefixed by an @. Groups can either be groups defined in the groups_section
> > (explained below) or Unix groups. If a group from the groups_section has the
> > same name as an Unix group it is used instead.
> > 
> > 
> > The groups_section
> > 
> > Name of hgrc section used to define groups for authorization.
> > Default is web.groups. Use the section to define the groups used
> > by authorization.
> > 
> > Example:
> > 
> >     [web]
> >     allow_read = @devs
> > 
> >     [web.groups]
> >     devs = alice, bob, clara, david
> > 
> > Groups can contain other groups:
> > 
> >     [web]
> >     allow_read = @devs, @testers
> >     allow_push = @devs
> > 
> >     [web.groups]
> >     devs = alice, bob, clara, david
> >     ci = hudson
> >     testers = @ci, lisa, mario
> I changed the patch as proposed by Mads and explained the functionality in my
> last email. Is there still anything missing or is the group authorization
> feature not wanted?

I've only seen one version of the patch?

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list