annotate tests/test-acl.t @ 11999:62e2bbf523f2

revlog: generate full revisions when parent node is missing The full revision is sent if the first parent, against which diff is calculated, is missing at remote. This happens in the case of shallow clones.
author Vishakh H <vsh426@gmail.com>
date Fri, 13 Aug 2010 19:41:51 +0530
parents 95a931616ba5
children 3b165c127690
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1 > do_push()
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
2 > {
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
3 > user=$1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
4 > shift
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
5 > echo "Pushing as user $user"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
6 > echo 'hgrc = """'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
7 > sed -e 1,2d b/.hg/hgrc | grep -v fakegroups.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
8 > echo '"""'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
9 > if test -f acl.config; then
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
10 > echo 'acl.config = """'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
11 > cat acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
12 > echo '"""'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
13 > fi
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
14 > # On AIX /etc/profile sets LOGNAME read-only. So
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
15 > # LOGNAME=$user hg --cws a --debug push ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
16 > # fails with "This variable is read only."
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
17 > # Use env to work around this.
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
18 > env LOGNAME=$user hg --cwd a --debug push ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
19 > hg --cwd b rollback
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
20 > hg --cwd b --quiet tip
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
21 > echo
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
22 > }
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
23
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
24 > init_config()
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
25 > {
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
26 > cat > fakegroups.py <<EOF
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
27 > from hgext import acl
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
28 > def fakegetusers(ui, group):
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
29 > try:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
30 > return acl._getusersorig(ui, group)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
31 > except:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
32 > return ["fred", "betty"]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
33 > acl._getusersorig = acl._getusers
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
34 > acl._getusers = fakegetusers
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
35 > EOF
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
36 > rm -f acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
37 > cat > $config <<EOF
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
38 > [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
39 > pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
40 > [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
41 > sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
42 > [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
43 > f=`pwd`/fakegroups.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
44 > EOF
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
45 > }
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
46
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
47 $ hg init a
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
48 $ cd a
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
49 $ mkdir foo foo/Bar quux
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
50 $ echo 'in foo' > foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
51 $ echo 'in foo/Bar' > foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
52 $ echo 'in quux' > quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
53 $ hg add -q
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
54 $ hg ci -m 'add files' -d '1000000 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
55 $ echo >> foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
56 $ hg ci -m 'change foo/file' -d '1000001 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
57 $ echo >> foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
58 $ hg ci -m 'change foo/Bar/file' -d '1000002 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
59 $ echo >> quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
60 $ hg ci -m 'change quux/file' -d '1000003 0'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
61 $ hg tip --quiet
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
62 3:911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
63
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
64 $ cd ..
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
65 $ hg clone -r 0 a b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
66 requesting all changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
67 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
68 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
69 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
70 added 1 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
71 updating to branch default
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
72 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
73
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
74 $ echo '[extensions]' >> $HGRCPATH
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
75 $ echo 'acl =' >> $HGRCPATH
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
76
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
77 $ config=b/.hg/hgrc
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
78
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
79 Extension disabled for lack of a hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
80
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
81 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
82 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
83 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
84 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
85 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
86 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
87 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
88 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
89 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
90 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
91 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
92 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
93 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
94 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
95 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
96 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
97 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
98 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
99 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
100 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
101 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
102 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
103 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
104 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
105 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
106 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
107 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
108 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
109 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
110 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
111 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
112 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
113 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
114 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
115 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
116 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
117 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
118 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
119 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
120 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
121 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
122 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
123 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
124 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
125 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
126 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
127 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
128 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
129 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
130 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
131 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
132 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
133 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
134 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
135 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
136 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
137 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
138 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
139 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
140 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
141 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
142 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
143 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
144 updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
145 rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
146 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
147
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
148
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
149 $ echo '[hooks]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
150 $ echo 'pretxnchangegroup.acl = python:hgext.acl.hook' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
151
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
152 Extension disabled for lack of acl.sources
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
153
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
154 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
155 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
156 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
157 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
158 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
159 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
160 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
161 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
162 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
163 invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
164 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
165 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
166 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
167 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
168 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
169 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
170 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
171 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
172 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
173 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
174 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
175 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
176 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
177 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
178 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
179 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
180 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
181 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
182 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
183 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
184 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
185 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
186 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
187 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
188 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
189 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
190 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
191 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
192 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
193 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
194 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
195 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
196 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
197 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
198 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
199 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
200 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
201 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
202 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
203 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
204 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
205 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
206 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
207 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
208 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
209 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
210 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
211 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
212 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
213 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
214 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
215 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
216 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
217 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
218 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
219 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
220 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
221 acl: changes have source "push" - skipping
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
222 updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
223 rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
224 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
225
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
226
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
227 No [acl.allow]/[acl.deny]
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
228
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
229 $ echo '[acl]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
230 $ echo 'sources = push' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
231 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
232 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
233 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
234 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
235 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
236 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
237 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
238 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
239 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
240 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
241 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
242 invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
243 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
244 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
245 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
246 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
247 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
248 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
249 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
250 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
251 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
252 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
253 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
254 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
255 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
256 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
257 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
258 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
259 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
260 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
261 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
262 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
263 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
264 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
265 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
266 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
267 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
268 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
269 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
270 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
271 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
272 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
273 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
274 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
275 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
276 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
277 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
278 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
279 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
280 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
281 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
282 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
283 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
284 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
285 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
286 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
287 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
288 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
289 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
290 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
291 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
292 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
293 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
294 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
295 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
296 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
297 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
298 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
299 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
300 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
301 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
302 acl: acl.allow not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
303 acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
304 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
305 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
306 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
307 acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
308 acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
309 acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
310 updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
311 rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
312 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
313
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
314
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
315 Empty [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
316
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
317 $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
318 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
319 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
320 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
321 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
322 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
323 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
324 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
325 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
326 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
327 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
328 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
329 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
330 invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
331 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
332 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
333 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
334 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
335 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
336 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
337 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
338 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
339 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
340 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
341 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
342 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
343 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
344 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
345 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
346 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
347 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
348 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
349 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
350 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
351 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
352 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
353 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
354 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
355 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
356 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
357 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
358 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
359 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
360 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
361 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
362 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
363 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
364 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
365 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
366 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
367 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
368 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
369 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
370 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
371 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
372 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
373 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
374 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
375 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
376 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
377 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
378 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
379 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
380 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
381 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
382 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
383 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
384 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
385 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
386 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
387 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
388 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
389 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
390 acl: acl.allow enabled, 0 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
391 acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
392 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
393 acl: user fred not allowed on foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
394 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
395 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
396 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
397 abort: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
398 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
399 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
400
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
401
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
402 fred is allowed inside foo/
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
403
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
404 $ echo 'foo/** = fred' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
405 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
406 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
407 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
408 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
409 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
410 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
411 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
412 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
413 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
414 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
415 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
416 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
417 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
418 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
419 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
420 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
421 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
422 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
423 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
424 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
425 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
426 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
427 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
428 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
429 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
430 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
431 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
432 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
433 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
434 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
435 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
436 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
437 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
438 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
439 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
440 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
441 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
442 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
443 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
444 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
445 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
446 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
447 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
448 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
449 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
450 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
451 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
452 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
453 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
454 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
455 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
456 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
457 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
458 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
459 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
460 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
461 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
462 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
463 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
464 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
465 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
466 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
467 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
468 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
469 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
470 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
471 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
472 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
473 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
474 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
475 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
476 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
477 acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
478 acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
479 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
480 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
481 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
482 acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
483 acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
484 acl: user fred not allowed on quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
485 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
486 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
487 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
488 abort: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
489 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
490 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
491
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
492
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
493 Empty [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
494
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
495 $ echo '[acl.deny]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
496 $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
497 Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
498 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
499 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
500 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
501 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
502 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
503 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
504 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
505 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
506 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
507 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
508 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
509 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
510 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
511 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
512 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
513 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
514 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
515 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
516 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
517 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
518 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
519 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
520 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
521 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
522 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
523 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
524 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
525 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
526 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
527 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
528 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
529 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
530 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
531 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
532 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
533 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
534 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
535 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
536 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
537 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
538 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
539 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
540 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
541 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
542 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
543 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
544 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
545 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
546 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
547 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
548 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
549 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
550 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
551 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
552 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
553 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
554 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
555 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
556 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
557 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
558 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
559 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
560 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
561 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
562 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
563 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
564 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
565 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
566 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
567 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
568 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
569 acl: acl.allow enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
570 acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
571 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
572 acl: user barney not allowed on foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
573 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
574 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
575 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
576 abort: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
577 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
578 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
579
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
580
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
581 fred is allowed inside foo/, but not foo/bar/ (case matters)
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
582
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
583 $ echo 'foo/bar/** = fred' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
584 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
585 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
586 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
587 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
588 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
589 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
590 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
591 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
592 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
593 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
594 foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
595 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
596 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
597 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
598 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
599 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
600 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
601 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
602 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
603 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
604 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
605 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
606 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
607 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
608 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
609 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
610 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
611 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
612 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
613 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
614 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
615 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
616 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
617 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
618 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
619 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
620 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
621 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
622 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
623 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
624 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
625 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
626 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
627 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
628 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
629 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
630 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
631 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
632 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
633 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
634 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
635 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
636 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
637 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
638 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
639 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
640 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
641 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
642 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
643 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
644 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
645 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
646 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
647 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
648 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
649 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
650 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
651 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
652 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
653 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
654 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
655 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
656 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
657 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
658 acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
659 acl: acl.deny enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
660 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
661 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
662 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
663 acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
664 acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
665 acl: user fred not allowed on quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
666 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
667 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
668 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
669 abort: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
670 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
671 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
672
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
673
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
674 fred is allowed inside foo/, but not foo/Bar/
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
675
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
676 $ echo 'foo/Bar/** = fred' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
677 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
678 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
679 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
680 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
681 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
682 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
683 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
684 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
685 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
686 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
687 foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
688 foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
689 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
690 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
691 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
692 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
693 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
694 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
695 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
696 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
697 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
698 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
699 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
700 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
701 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
702 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
703 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
704 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
705 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
706 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
707 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
708 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
709 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
710 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
711 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
712 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
713 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
714 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
715 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
716 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
717 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
718 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
719 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
720 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
721 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
722 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
723 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
724 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
725 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
726 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
727 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
728 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
729 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
730 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
731 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
732 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
733 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
734 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
735 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
736 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
737 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
738 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
739 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
740 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
741 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
742 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
743 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
744 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
745 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
746 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
747 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
748 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
749 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
750 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
751 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
752 acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
753 acl: acl.deny enabled, 2 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
754 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
755 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
756 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
757 acl: user fred denied on foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
758 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
759 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
760 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
761 abort: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
762 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
763 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
764
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
765
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
766 $ echo 'barney is not mentioned => not allowed anywhere'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
767 barney is not mentioned => not allowed anywhere
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
768 $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
769 Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
770 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
771 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
772 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
773 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
774 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
775 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
776 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
777 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
778 foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
779 foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
780 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
781 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
782 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
783 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
784 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
785 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
786 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
787 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
788 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
789 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
790 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
791 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
792 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
793 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
794 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
795 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
796 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
797 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
798 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
799 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
800 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
801 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
802 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
803 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
804 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
805 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
806 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
807 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
808 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
809 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
810 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
811 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
812 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
813 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
814 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
815 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
816 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
817 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
818 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
819 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
820 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
821 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
822 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
823 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
824 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
825 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
826 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
827 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
828 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
829 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
830 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
831 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
832 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
833 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
834 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
835 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
836 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
837 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
838 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
839 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
840 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
841 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
842 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
843 acl: acl.allow enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
844 acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
845 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
846 acl: user barney not allowed on foo/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
847 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
848 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
849 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
850 abort: acl: access denied for changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
851 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
852 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
853
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
854
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
855 barney is allowed everywhere
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
856
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
857 $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
858 $ echo '** = barney' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
859 $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
860 Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
861 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
862 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
863 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
864 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
865 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
866 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
867 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
868 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
869 foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
870 foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
871 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
872 ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
873 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
874 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
875 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
876 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
877 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
878 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
879 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
880 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
881 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
882 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
883 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
884 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
885 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
886 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
887 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
888 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
889 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
890 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
891 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
892 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
893 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
894 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
895 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
896 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
897 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
898 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
899 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
900 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
901 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
902 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
903 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
904 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
905 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
906 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
907 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
908 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
909 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
910 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
911 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
912 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
913 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
914 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
915 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
916 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
917 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
918 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
919 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
920 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
921 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
922 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
923 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
924 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
925 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
926 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
927 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
928 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
929 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
930 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
931 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
932 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
933 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
934 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
935 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
936 acl: acl.allow enabled, 1 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
937 acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
938 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
939 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
940 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
941 acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
942 acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
943 acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
944 updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
945 rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
946 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
947
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
948
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
949 wilma can change files with a .txt extension
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
950
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
951 $ echo '**/*.txt = wilma' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
952 $ do_push wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
953 Pushing as user wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
954 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
955 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
956 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
957 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
958 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
959 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
960 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
961 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
962 foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
963 foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
964 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
965 ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
966 **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
967 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
968 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
969 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
970 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
971 invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
972 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
973 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
974 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
975 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
976 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
977 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
978 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
979 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
980 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
981 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
982 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
983 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
984 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
985 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
986 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
987 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
988 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
989 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
990 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
991 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
992 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
993 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
994 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
995 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
996 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
997 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
998 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
999 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1000 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1001 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1002 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1003 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1004 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1005 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1006 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1007 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1008 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1009 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1010 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1011 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1012 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1013 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1014 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1015 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1016 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1017 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1018 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1019 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1020 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1021 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1022 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1023 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1024 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1025 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1026 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1027 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1028 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1029 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1030 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1031 acl: acl.allow enabled, 1 entries for user wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1032 acl: acl.deny enabled, 0 entries for user wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1033 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1034 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1035 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1036 acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1037 acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1038 acl: user wilma not allowed on quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1039 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1040 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1041 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1042 abort: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1043 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1044 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1045
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
1046
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1047 file specified by acl.config does not exist
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
1048
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1049 $ echo '[acl]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1050 $ echo 'config = ../acl.config' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1051 $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1052 Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1053 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1054 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1055 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1056 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1057 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1058 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1059 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1060 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1061 foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1062 foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1063 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1064 ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1065 **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1066 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1067 config = ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1068 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1069 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1070 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1071 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1072 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1073 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1074 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1075 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1076 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1077 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1078 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1079 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1080 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1081 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1082 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1083 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1084 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1085 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1086 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1087 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1088 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1089 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1090 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1091 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1092 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1093 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1094 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1095 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1096 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1097 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1098 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1099 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1100 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1101 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1102 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1103 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1104 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1105 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1106 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1107 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1108 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1109 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1110 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1111 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1112 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1113 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1114 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1115 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1116 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1117 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1118 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1119 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1120 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1121 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1122 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1123 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1124 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1125 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1126 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1127 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1128 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1129 error: pretxnchangegroup.acl hook raised an exception: [Errno 2] No such file or directory: '../acl.config'
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1130 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1131 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1132 abort: No such file or directory: ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1133 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1134 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1135
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
1136
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1137 betty is allowed inside foo/ by a acl.config file
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
1138
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1139 $ echo '[acl.allow]' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1140 $ echo 'foo/** = betty' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1141 $ do_push betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1142 Pushing as user betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1143 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1144 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1145 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1146 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1147 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1148 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1149 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1150 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1151 foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1152 foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1153 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1154 ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1155 **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1156 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1157 config = ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1158 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1159 acl.config = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1160 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1161 foo/** = betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1162 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1163 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1164 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1165 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1166 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1167 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1168 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1169 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1170 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1171 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1172 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1173 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1174 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1175 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1176 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1177 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1178 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1179 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1180 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1181 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1182 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1183 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1184 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1185 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1186 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1187 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1188 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1189 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1190 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1191 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1192 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1193 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1194 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1195 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1196 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1197 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1198 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1199 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1200 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1201 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1202 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1203 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1204 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1205 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1206 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1207 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1208 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1209 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1210 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1211 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1212 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1213 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1214 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1215 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1216 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1217 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1218 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1219 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1220 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1221 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1222 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1223 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1224 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1225 acl: acl.allow enabled, 1 entries for user betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1226 acl: acl.deny enabled, 0 entries for user betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1227 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1228 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1229 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1230 acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1231 acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1232 acl: user betty not allowed on quux/file.py
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1233 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1234 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1235 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1236 abort: acl: access denied for changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1237 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1238 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1239
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
1240
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1241 acl.config can set only [acl.allow]/[acl.deny]
3426
bb00a5a92c30 Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff changeset
1242
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1243 $ echo '[hooks]' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1244 $ echo 'changegroup.acl = false' >> acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1245 $ do_push barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1246 Pushing as user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1247 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1248 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1249 pretxnchangegroup.acl = python:hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1250 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1251 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1252 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1253 foo/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1254 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1255 foo/bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1256 foo/Bar/** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1257 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1258 ** = barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1259 **/*.txt = wilma
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1260 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1261 config = ../acl.config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1262 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1263 acl.config = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1264 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1265 foo/** = betty
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1266 [hooks]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1267 changegroup.acl = false
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1268 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1269 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1270 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1271 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1272 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1273 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1274 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1275 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1276 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1277 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1278 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1279 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1280 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1281 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1282 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1283 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1284 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1285 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1286 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1287 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1288 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1289 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1290 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1291 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1292 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1293 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1294 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1295 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1296 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1297 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1298 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1299 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1300 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1301 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1302 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1303 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1304 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1305 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1306 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1307 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1308 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1309 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1310 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1311 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1312 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1313 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1314 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1315 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1316 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1317 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1318 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1319 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1320 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1321 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1322 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1323 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1324 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1325 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1326 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1327 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1328 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1329 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1330 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1331 acl: acl.allow enabled, 1 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1332 acl: acl.deny enabled, 0 entries for user barney
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1333 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1334 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1335 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1336 acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1337 acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1338 acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1339 updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1340 rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1341 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1342
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
1343
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1344 asterisk
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1345
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1346 $ init_config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1347
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1348 asterisk test
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1349
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1350 $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1351 $ echo "** = fred" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1352
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1353 fred is always allowed
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
1354
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1355 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1356 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1357 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1358 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1359 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1360 [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1361 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1362 ** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1363 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1364 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1365 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1366 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1367 invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1368 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1369 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1370 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1371 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1372 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1373 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1374 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1375 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1376 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1377 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1378 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1379 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1380 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1381 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1382 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1383 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1384 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1385 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1386 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1387 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1388 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1389 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1390 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1391 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1392 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1393 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1394 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1395 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1396 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1397 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1398 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1399 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1400 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1401 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1402 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1403 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1404 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1405 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1406 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1407 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1408 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1409 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1410 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1411 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1412 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1413 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1414 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1415 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1416 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1417 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1418 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1419 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1420 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1421 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1422 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1423 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1424 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1425 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1426 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1427 acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1428 acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1429 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1430 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1431 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1432 acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1433 acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1434 acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1435 updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1436 rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1437 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1438
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
1439
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1440 $ echo '[acl.deny]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1441 $ echo "foo/Bar/** = *" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1442
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1443 no one is allowed inside foo/Bar/
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
1444
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1445 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1446 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1447 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1448 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1449 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1450 [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1451 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1452 ** = fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1453 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1454 foo/Bar/** = *
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1455 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1456 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1457 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1458 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1459 invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1460 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1461 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1462 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1463 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1464 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1465 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1466 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1467 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1468 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1469 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1470 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1471 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1472 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1473 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1474 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1475 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1476 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1477 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1478 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1479 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1480 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1481 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1482 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1483 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1484 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1485 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1486 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1487 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1488 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1489 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1490 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1491 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1492 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1493 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1494 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1495 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1496 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1497 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1498 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1499 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1500 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1501 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1502 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1503 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1504 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1505 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1506 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1507 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1508 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1509 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1510 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1511 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1512 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1513 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1514 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1515 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1516 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1517 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1518 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1519 acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1520 acl: acl.deny enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1521 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1522 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1523 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1524 acl: user fred denied on foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1525 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1526 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1527 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1528 abort: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1529 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1530 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1531
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
1532
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1533 Groups
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1534
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1535 $ init_config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1536
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1537 OS-level groups
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1538
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1539 $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1540 $ echo "** = @group1" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1541
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1542 @group1 is always allowed
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
1543
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1544 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1545 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1546 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1547 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1548 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1549 [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1550 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1551 ** = @group1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1552 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1553 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1554 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1555 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1556 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1557 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1558 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1559 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1560 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1561 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1562 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1563 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1564 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1565 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1566 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1567 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1568 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1569 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1570 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1571 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1572 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1573 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1574 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1575 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1576 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1577 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1578 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1579 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1580 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1581 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1582 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1583 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1584 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1585 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1586 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1587 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1588 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1589 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1590 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1591 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1592 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1593 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1594 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1595 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1596 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1597 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1598 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1599 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1600 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1601 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1602 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1603 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1604 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1605 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1606 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1607 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1608 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1609 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1610 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1611 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1612 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1613 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1614 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1615 acl: "group1" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1616 acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1617 acl: acl.deny not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1618 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1619 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1620 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1621 acl: allowing changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1622 acl: branch access granted: "911600dab2ae" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1623 acl: allowing changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1624 updating the branch cache
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1625 rolling back to revision 0 (undo push)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1626 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1627
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1628
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1629 $ echo '[acl.deny]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1630 $ echo "foo/Bar/** = @group1" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1631
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1632 @group is allowed inside anything but foo/Bar/
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
1633
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1634 $ do_push fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1635 Pushing as user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1636 hgrc = """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1637 [acl]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1638 sources = push
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1639 [extensions]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1640 [acl.allow]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1641 ** = @group1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1642 [acl.deny]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1643 foo/Bar/** = @group1
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1644 """
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1645 pushing to ../b
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1646 searching for changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1647 common changesets up to 6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1648 invalidating branch cache (tip differs)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1649 3 changesets found
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1650 list of changesets:
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1651 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1652 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1653 911600dab2ae7a9baff75958b84fe606851ce955
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1654 adding changesets
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1655 bundling changes: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1656 bundling changes: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1657 bundling changes: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1658 bundling changes: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1659 bundling changes: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1660 bundling changes: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1661 bundling changes: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1662 bundling changes: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1663 bundling changes: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1664 bundling changes: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1665 bundling manifests: 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1666 bundling manifests: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1667 bundling manifests: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1668 bundling manifests: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1669 bundling manifests: 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1670 bundling manifests: 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1671 bundling manifests: 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1672 bundling manifests: 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1673 bundling manifests: 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1674 bundling manifests: 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1675 bundling files: foo/Bar/file.txt 0 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1676 bundling files: foo/Bar/file.txt 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1677 bundling files: foo/Bar/file.txt 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1678 bundling files: foo/Bar/file.txt 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1679 bundling files: foo/file.txt 4 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1680 bundling files: foo/file.txt 5 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1681 bundling files: foo/file.txt 6 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1682 bundling files: foo/file.txt 7 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1683 bundling files: quux/file.py 8 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1684 bundling files: quux/file.py 9 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1685 bundling files: quux/file.py 10 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1686 bundling files: quux/file.py 11 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1687 changesets: 1 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1688 add changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1689 changesets: 2 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1690 add changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1691 changesets: 3 chunks
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1692 add changeset 911600dab2ae
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1693 adding manifests
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1694 manifests: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1695 manifests: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1696 manifests: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1697 adding file changes
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1698 adding foo/Bar/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1699 files: 1/3 chunks (33.33%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1700 adding foo/file.txt revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1701 files: 2/3 chunks (66.67%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1702 adding quux/file.py revisions
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1703 files: 3/3 chunks (100.00%)
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1704 added 3 changesets with 3 changes to 3 files
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1705 calling hook pretxnchangegroup.acl: hgext.acl.hook
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1706 acl: acl.allow.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1707 acl: acl.deny.branches not enabled
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1708 acl: "group1" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1709 acl: acl.allow enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1710 acl: "group1" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1711 acl: acl.deny enabled, 1 entries for user fred
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1712 acl: branch access granted: "ef1ea85a6374" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1713 acl: allowing changeset ef1ea85a6374
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1714 acl: branch access granted: "f9cafe1212c8" on branch "default"
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1715 acl: user fred denied on foo/Bar/file.txt
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1716 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1717 transaction abort!
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1718 rollback completed
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1719 abort: acl: access denied for changeset f9cafe1212c8
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1720 no rollback information available
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1721 0:6675d58eff77
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1722
11043
08681cb66231 acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents: 10119
diff changeset
1723
11849
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1724 Invalid group
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1725
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1726 Disable the fakegroups trick to get real failures
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1727
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1728 $ grep -v fakegroups $config > config.tmp
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1729 $ mv config.tmp $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1730 $ echo '[acl.allow]' >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1731 $ echo "** = @unlikelytoexist" >> $config
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1732 $ do_push fred 2>&1 | grep unlikelytoexist
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1733 ** = @unlikelytoexist
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1734 acl: "unlikelytoexist" not defined in [acl.groups]
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1735 error: pretxnchangegroup.acl hook failed: group 'unlikelytoexist' is undefined
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1736 abort: group 'unlikelytoexist' is undefined
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1737
95a931616ba5 tests: unify test-acl
Martin Geisler <mg@lazybytes.net>
parents: 11461
diff changeset
1738 $ true