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