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