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