comparison hgext/acl.py @ 9201:3d6c9659886b

acl: use reST syntax for literal blocks
author Martin Geisler <mg@lazybytes.net>
date Thu, 23 Jul 2009 00:01:24 +0200
parents 1344e607180b
children 00986b9ed649
comparison
equal deleted inserted replaced
9200:6b4c527c3d22 9201:3d6c9659886b
19 authenticating users from doing anything other than pushing or pulling. The 19 authenticating users from doing anything other than pushing or pulling. The
20 hook is not safe to use if users have interactive shell access, as they can 20 hook is not safe to use if users have interactive shell access, as they can
21 then disable the hook. Nor is it safe if remote users share an account, 21 then disable the hook. Nor is it safe if remote users share an account,
22 because then there is no way to distinguish them. 22 because then there is no way to distinguish them.
23 23
24 To use this hook, configure the acl extension in your hgrc like this: 24 To use this hook, configure the acl extension in your hgrc like this::
25 25
26 [extensions] 26 [extensions]
27 hgext.acl = 27 hgext.acl =
28 28
29 [hooks] 29 [hooks]
34 # ("serve" == ssh or http, "push", "pull", "bundle") 34 # ("serve" == ssh or http, "push", "pull", "bundle")
35 sources = serve 35 sources = serve
36 36
37 The allow and deny sections take a subtree pattern as key (with a glob syntax 37 The allow and deny sections take a subtree pattern as key (with a glob syntax
38 by default), and a comma separated list of users as the corresponding value. 38 by default), and a comma separated list of users as the corresponding value.
39 The deny list is checked before the allow list is. 39 The deny list is checked before the allow list is. ::
40 40
41 [acl.allow] 41 [acl.allow]
42 # If acl.allow is not present, all users are allowed by default. 42 # If acl.allow is not present, all users are allowed by default.
43 # An empty acl.allow section means no users allowed. 43 # An empty acl.allow section means no users allowed.
44 docs/** = doc_writer 44 docs/** = doc_writer