[PATCH RESEND] hgweb: add group authorization

Markus Zapke-Gründemann markuszapke at gmx.net
Tue Feb 12 06:09:43 CST 2013


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


Regards

Markus


More information about the Mercurial-devel mailing list