1 # This is a sample configuration file for commit-access-control.pl.
5 # This file uses the Windows ini style, where the file consists of a
6 # number of sections, each section starts with a unique section name
7 # in square brackets. Parameters in each section are specified as
8 # Name = Value. Any spaces around the equal sign will be ignored. If
9 # there are multiple sections with exactly the same section name, then
10 # the parameters in those sections will be added together to produce
11 # one section with cumulative parameters.
13 # The commit-access-control.pl script reads these sections in order,
14 # so later sections may overwrite permissions granted or removed in
17 # Each section has three valid parameters. Any other parameters are
19 # access = (read-only|read-write)
21 # This parameter is a required parameter. Valid values are
22 # `read-only' and `read-write'.
24 # The access rights to apply to modified files and directories
25 # that match the `match' regular expression described later on.
29 # This parameter is a required parameter and its value is a Perl
32 # To help users that automatically write regular expressions that
33 # match the beginning of absolute paths using ^/, the script
34 # removes the / character because subversion paths, while they
35 # start at the root level, do not begin with a /.
37 # users = username1 [username2 [username3 [username4 ...]]]
39 # users = username1 [username2]
40 # users = username3 username4
42 # This parameter is optional. The usernames listed here must be
43 # exact usernames. There is no regular expression matching for
44 # usernames. You may specify all the usernames that apply on one
45 # line or split the names up on multiple lines.
47 # The access rights from `access' are applied to ALL modified
48 # paths that match the `match' regular expression only if NO
49 # usernames are specified in the section or if one of the listed
50 # usernames matches the author of the commit.
52 # By default, because you're using commit-access-control.pl in the
53 # first place to protect your repository, the script sets the
54 # permissions to all files and directories in the repository to
55 # read-only, so if you want to open up portions of the repository,
56 # you'll need to edit this file.
58 # NOTE: NEVER GIVE DIFFERENT SECTIONS THE SAME SECTION NAME, OTHERWISE
59 # THE PARAMETERS FOR THOSE SECTIONS WILL BE MERGED TOGETHER INTO ONE
60 # SECTION AND YOUR SECURITY MAY BE COMPROMISED.
62 [Make everything read-only for all users]
66 [Make project1 read-write for users Jane and Joe]
67 match = ^(branches|tags|trunk)/project1
71 [However, we don't trust Joe with project1's Makefile]
72 match = ^(branches|tags|trunk)/project1/Makefile