[PATCH RESEND] hgweb: add group authorization

Markus Zapke-Gründemann markuszapke at gmx.net
Fri Feb 22 17:43:01 CST 2013


Matt Mackall schrieb:
> 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?
> 
I resent the patch with all unnecessary stuff removed on Feb 7:

http://selenic.com/pipermail/mercurial-devel/2013-February/048710.html

The explaination of the group authorization functionality is quoted above.

I would like to know if there is anything missing or wrong.


Thanks

Markus


More information about the Mercurial-devel mailing list