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