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