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