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