author | Gregory Szorc <gregory.szorc@gmail.com> |
Wed, 07 Feb 2018 20:24:22 -0800 | |
changeset 36069 | 957e773614d0 |
parent 35792 | 1d118f9f4f57 |
child 36506 | 74c033b9d579 |
permissions | -rw-r--r-- |
11849 | 1 |
> do_push() |
2 |
> { |
|
3 |
> user=$1 |
|
4 |
> shift |
|
5 |
> echo "Pushing as user $user" |
|
6 |
> echo 'hgrc = """' |
|
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
7 |
> sed -n '/\[[ha]/,$p' b/.hg/hgrc | grep -v fakegroups.py |
11849 | 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 |
|
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34322
diff
changeset
|
70 |
new changesets 6675d58eff77 |
11849 | 71 |
updating to branch default |
72 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
73 |
||
74 |
$ config=b/.hg/hgrc |
|
75 |
||
76 |
Extension disabled for lack of a hook |
|
77 |
||
78 |
$ do_push fred |
|
79 |
Pushing as user fred |
|
80 |
hgrc = """ |
|
81 |
""" |
|
82 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
83 |
query 1; heads |
11849 | 84 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
85 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
86 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
87 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
88 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
89 |
listing keys for "bookmarks" |
11849 | 90 |
3 changesets found |
91 |
list of changesets: |
|
92 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
93 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
94 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
95 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
96 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
97 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
98 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
99 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
100 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
101 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
102 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
103 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
104 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
105 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
106 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
107 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
108 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
109 |
adding changesets |
11849 | 110 |
add changeset ef1ea85a6374 |
111 |
add changeset f9cafe1212c8 |
|
112 |
add changeset 911600dab2ae |
|
113 |
adding manifests |
|
114 |
adding file changes |
|
115 |
adding foo/Bar/file.txt revisions |
|
116 |
adding foo/file.txt revisions |
|
117 |
adding quux/file.py revisions |
|
118 |
added 3 changesets with 3 changes to 3 files |
|
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
119 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
120 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
121 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
122 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
123 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
124 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
125 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
126 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
127 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
128 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
129 |
listing keys for "phases" |
13446
1e497df514e2
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
13364
diff
changeset
|
130 |
repository tip rolled back to revision 0 (undo push) |
11849 | 131 |
0:6675d58eff77 |
132 |
||
133 |
||
134 |
$ echo '[hooks]' >> $config |
|
135 |
$ echo 'pretxnchangegroup.acl = python:hgext.acl.hook' >> $config |
|
136 |
||
137 |
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
|
138 |
|
11849 | 139 |
$ do_push fred |
140 |
Pushing as user fred |
|
141 |
hgrc = """ |
|
142 |
[hooks] |
|
143 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
144 |
""" |
|
145 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
146 |
query 1; heads |
11849 | 147 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
148 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
149 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
150 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
151 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
152 |
listing keys for "bookmarks" |
11849 | 153 |
3 changesets found |
154 |
list of changesets: |
|
155 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
156 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
157 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
158 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
159 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
160 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
161 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
162 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
163 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
164 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
165 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
166 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
167 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
168 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
169 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
170 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
171 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
172 |
adding changesets |
11849 | 173 |
add changeset ef1ea85a6374 |
174 |
add changeset f9cafe1212c8 |
|
175 |
add changeset 911600dab2ae |
|
176 |
adding manifests |
|
177 |
adding file changes |
|
178 |
adding foo/Bar/file.txt revisions |
|
179 |
adding foo/file.txt revisions |
|
180 |
adding quux/file.py revisions |
|
181 |
added 3 changesets with 3 changes to 3 files |
|
182 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
183 |
acl: changes have source "push" - skipping |
|
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
184 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
185 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
186 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
187 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
188 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
189 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
190 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
191 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
192 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
193 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
194 |
listing keys for "phases" |
13446
1e497df514e2
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
13364
diff
changeset
|
195 |
repository tip rolled back to revision 0 (undo push) |
11849 | 196 |
0:6675d58eff77 |
197 |
||
198 |
||
199 |
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
|
200 |
|
11849 | 201 |
$ echo '[acl]' >> $config |
202 |
$ echo 'sources = push' >> $config |
|
203 |
$ do_push fred |
|
204 |
Pushing as user fred |
|
205 |
hgrc = """ |
|
206 |
[hooks] |
|
207 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
208 |
[acl] |
|
209 |
sources = push |
|
210 |
""" |
|
211 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
212 |
query 1; heads |
11849 | 213 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
214 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
215 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
216 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
217 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
218 |
listing keys for "bookmarks" |
11849 | 219 |
3 changesets found |
220 |
list of changesets: |
|
221 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
222 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
223 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
224 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
225 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
226 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
227 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
228 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
229 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
230 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
231 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
232 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
233 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
234 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
235 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
236 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
237 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
238 |
adding changesets |
11849 | 239 |
add changeset ef1ea85a6374 |
240 |
add changeset f9cafe1212c8 |
|
241 |
add changeset 911600dab2ae |
|
242 |
adding manifests |
|
243 |
adding file changes |
|
244 |
adding foo/Bar/file.txt revisions |
|
245 |
adding foo/file.txt revisions |
|
246 |
adding quux/file.py revisions |
|
247 |
added 3 changesets with 3 changes to 3 files |
|
248 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
249 |
acl: checking access for user "fred" |
11849 | 250 |
acl: acl.allow.branches not enabled |
251 |
acl: acl.deny.branches not enabled |
|
252 |
acl: acl.allow not enabled |
|
253 |
acl: acl.deny not enabled |
|
254 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
255 |
acl: path access granted: "ef1ea85a6374" |
11849 | 256 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
257 |
acl: path access granted: "f9cafe1212c8" |
11849 | 258 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
259 |
acl: path access granted: "911600dab2ae" |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
260 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
261 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
262 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
263 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
264 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
265 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
266 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
267 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
268 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
269 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
270 |
listing keys for "phases" |
13446
1e497df514e2
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
13364
diff
changeset
|
271 |
repository tip rolled back to revision 0 (undo push) |
11849 | 272 |
0:6675d58eff77 |
273 |
||
274 |
||
275 |
Empty [acl.allow] |
|
276 |
||
277 |
$ echo '[acl.allow]' >> $config |
|
278 |
$ do_push fred |
|
279 |
Pushing as user fred |
|
280 |
hgrc = """ |
|
281 |
[hooks] |
|
282 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
283 |
[acl] |
|
284 |
sources = push |
|
285 |
[acl.allow] |
|
286 |
""" |
|
287 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
288 |
query 1; heads |
11849 | 289 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
290 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
291 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
292 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
293 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
294 |
listing keys for "bookmarks" |
11849 | 295 |
3 changesets found |
296 |
list of changesets: |
|
297 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
298 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
299 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
300 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
301 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
302 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
303 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
304 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
305 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
306 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
307 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
308 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
309 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
310 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
311 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
312 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
313 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
314 |
adding changesets |
11849 | 315 |
add changeset ef1ea85a6374 |
316 |
add changeset f9cafe1212c8 |
|
317 |
add changeset 911600dab2ae |
|
318 |
adding manifests |
|
319 |
adding file changes |
|
320 |
adding foo/Bar/file.txt revisions |
|
321 |
adding foo/file.txt revisions |
|
322 |
adding quux/file.py revisions |
|
323 |
added 3 changesets with 3 changes to 3 files |
|
324 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
325 |
acl: checking access for user "fred" |
11849 | 326 |
acl: acl.allow.branches not enabled |
327 |
acl: acl.deny.branches not enabled |
|
328 |
acl: acl.allow enabled, 0 entries for user fred |
|
329 |
acl: acl.deny not enabled |
|
330 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
331 |
error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
332 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
333 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
334 |
bundle2-input-bundle: 4 parts total |
11849 | 335 |
transaction abort! |
336 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
337 |
abort: acl: user "fred" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") |
11849 | 338 |
no rollback information available |
339 |
0:6675d58eff77 |
|
340 |
||
341 |
||
342 |
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
|
343 |
|
11849 | 344 |
$ echo 'foo/** = fred' >> $config |
345 |
$ do_push fred |
|
346 |
Pushing as user fred |
|
347 |
hgrc = """ |
|
348 |
[hooks] |
|
349 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
350 |
[acl] |
|
351 |
sources = push |
|
352 |
[acl.allow] |
|
353 |
foo/** = fred |
|
354 |
""" |
|
355 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
356 |
query 1; heads |
11849 | 357 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
358 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
359 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
360 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
361 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
362 |
listing keys for "bookmarks" |
11849 | 363 |
3 changesets found |
364 |
list of changesets: |
|
365 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
366 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
367 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
368 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
369 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
370 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
371 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
372 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
373 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
374 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
375 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
376 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
377 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
378 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
379 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
380 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
381 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
382 |
adding changesets |
11849 | 383 |
add changeset ef1ea85a6374 |
384 |
add changeset f9cafe1212c8 |
|
385 |
add changeset 911600dab2ae |
|
386 |
adding manifests |
|
387 |
adding file changes |
|
388 |
adding foo/Bar/file.txt revisions |
|
389 |
adding foo/file.txt revisions |
|
390 |
adding quux/file.py revisions |
|
391 |
added 3 changesets with 3 changes to 3 files |
|
392 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
393 |
acl: checking access for user "fred" |
11849 | 394 |
acl: acl.allow.branches not enabled |
395 |
acl: acl.deny.branches not enabled |
|
396 |
acl: acl.allow enabled, 1 entries for user fred |
|
397 |
acl: acl.deny not enabled |
|
398 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
399 |
acl: path access granted: "ef1ea85a6374" |
11849 | 400 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
401 |
acl: path access granted: "f9cafe1212c8" |
11849 | 402 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
403 |
error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
404 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
405 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
406 |
bundle2-input-bundle: 4 parts total |
11849 | 407 |
transaction abort! |
408 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
409 |
abort: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") |
11849 | 410 |
no rollback information available |
411 |
0:6675d58eff77 |
|
412 |
||
413 |
||
414 |
Empty [acl.deny] |
|
415 |
||
416 |
$ echo '[acl.deny]' >> $config |
|
417 |
$ do_push barney |
|
418 |
Pushing as user barney |
|
419 |
hgrc = """ |
|
420 |
[hooks] |
|
421 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
422 |
[acl] |
|
423 |
sources = push |
|
424 |
[acl.allow] |
|
425 |
foo/** = fred |
|
426 |
[acl.deny] |
|
427 |
""" |
|
428 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
429 |
query 1; heads |
11849 | 430 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
431 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
432 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
433 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
434 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
435 |
listing keys for "bookmarks" |
11849 | 436 |
3 changesets found |
437 |
list of changesets: |
|
438 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
439 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
440 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
441 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
442 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
443 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
444 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
445 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
446 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
447 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
448 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
449 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
450 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
451 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
452 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
453 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
454 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
455 |
adding changesets |
11849 | 456 |
add changeset ef1ea85a6374 |
457 |
add changeset f9cafe1212c8 |
|
458 |
add changeset 911600dab2ae |
|
459 |
adding manifests |
|
460 |
adding file changes |
|
461 |
adding foo/Bar/file.txt revisions |
|
462 |
adding foo/file.txt revisions |
|
463 |
adding quux/file.py revisions |
|
464 |
added 3 changesets with 3 changes to 3 files |
|
465 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
466 |
acl: checking access for user "barney" |
11849 | 467 |
acl: acl.allow.branches not enabled |
468 |
acl: acl.deny.branches not enabled |
|
469 |
acl: acl.allow enabled, 0 entries for user barney |
|
470 |
acl: acl.deny enabled, 0 entries for user barney |
|
471 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
472 |
error: pretxnchangegroup.acl hook failed: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
473 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
474 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
475 |
bundle2-input-bundle: 4 parts total |
11849 | 476 |
transaction abort! |
477 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
478 |
abort: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") |
11849 | 479 |
no rollback information available |
480 |
0:6675d58eff77 |
|
481 |
||
482 |
||
483 |
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
|
484 |
|
11849 | 485 |
$ echo 'foo/bar/** = fred' >> $config |
486 |
$ do_push fred |
|
487 |
Pushing as user fred |
|
488 |
hgrc = """ |
|
489 |
[hooks] |
|
490 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
491 |
[acl] |
|
492 |
sources = push |
|
493 |
[acl.allow] |
|
494 |
foo/** = fred |
|
495 |
[acl.deny] |
|
496 |
foo/bar/** = fred |
|
497 |
""" |
|
498 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
499 |
query 1; heads |
11849 | 500 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
501 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
502 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
503 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
504 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
505 |
listing keys for "bookmarks" |
11849 | 506 |
3 changesets found |
507 |
list of changesets: |
|
508 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
509 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
510 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
511 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
512 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
513 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
514 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
515 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
516 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
517 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
518 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
519 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
520 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
521 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
522 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
523 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
524 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
525 |
adding changesets |
11849 | 526 |
add changeset ef1ea85a6374 |
527 |
add changeset f9cafe1212c8 |
|
528 |
add changeset 911600dab2ae |
|
529 |
adding manifests |
|
530 |
adding file changes |
|
531 |
adding foo/Bar/file.txt revisions |
|
532 |
adding foo/file.txt revisions |
|
533 |
adding quux/file.py revisions |
|
534 |
added 3 changesets with 3 changes to 3 files |
|
535 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
536 |
acl: checking access for user "fred" |
11849 | 537 |
acl: acl.allow.branches not enabled |
538 |
acl: acl.deny.branches not enabled |
|
539 |
acl: acl.allow enabled, 1 entries for user fred |
|
540 |
acl: acl.deny enabled, 1 entries for user fred |
|
541 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
542 |
acl: path access granted: "ef1ea85a6374" |
11849 | 543 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
544 |
acl: path access granted: "f9cafe1212c8" |
11849 | 545 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
546 |
error: pretxnchangegroup.acl hook failed: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
547 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
548 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
549 |
bundle2-input-bundle: 4 parts total |
11849 | 550 |
transaction abort! |
551 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
552 |
abort: acl: user "fred" not allowed on "quux/file.py" (changeset "911600dab2ae") |
11849 | 553 |
no rollback information available |
554 |
0:6675d58eff77 |
|
555 |
||
556 |
||
557 |
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
|
558 |
|
11849 | 559 |
$ echo 'foo/Bar/** = fred' >> $config |
560 |
$ do_push fred |
|
561 |
Pushing as user fred |
|
562 |
hgrc = """ |
|
563 |
[hooks] |
|
564 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
565 |
[acl] |
|
566 |
sources = push |
|
567 |
[acl.allow] |
|
568 |
foo/** = fred |
|
569 |
[acl.deny] |
|
570 |
foo/bar/** = fred |
|
571 |
foo/Bar/** = fred |
|
572 |
""" |
|
573 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
574 |
query 1; heads |
11849 | 575 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
576 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
577 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
578 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
579 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
580 |
listing keys for "bookmarks" |
11849 | 581 |
3 changesets found |
582 |
list of changesets: |
|
583 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
584 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
585 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
586 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
587 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
588 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
589 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
590 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
591 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
592 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
593 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
594 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
595 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
596 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
597 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
598 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
599 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
600 |
adding changesets |
11849 | 601 |
add changeset ef1ea85a6374 |
602 |
add changeset f9cafe1212c8 |
|
603 |
add changeset 911600dab2ae |
|
604 |
adding manifests |
|
605 |
adding file changes |
|
606 |
adding foo/Bar/file.txt revisions |
|
607 |
adding foo/file.txt revisions |
|
608 |
adding quux/file.py revisions |
|
609 |
added 3 changesets with 3 changes to 3 files |
|
610 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
611 |
acl: checking access for user "fred" |
11849 | 612 |
acl: acl.allow.branches not enabled |
613 |
acl: acl.deny.branches not enabled |
|
614 |
acl: acl.allow enabled, 1 entries for user fred |
|
615 |
acl: acl.deny enabled, 2 entries for user fred |
|
616 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
617 |
acl: path access granted: "ef1ea85a6374" |
11849 | 618 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
619 |
error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
620 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
621 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
622 |
bundle2-input-bundle: 4 parts total |
11849 | 623 |
transaction abort! |
624 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
625 |
abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") |
11849 | 626 |
no rollback information available |
627 |
0:6675d58eff77 |
|
628 |
||
3426
bb00a5a92c30
Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
629 |
|
11849 | 630 |
$ echo 'barney is not mentioned => not allowed anywhere' |
631 |
barney is not mentioned => not allowed anywhere |
|
632 |
$ do_push barney |
|
633 |
Pushing as user barney |
|
634 |
hgrc = """ |
|
635 |
[hooks] |
|
636 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
637 |
[acl] |
|
638 |
sources = push |
|
639 |
[acl.allow] |
|
640 |
foo/** = fred |
|
641 |
[acl.deny] |
|
642 |
foo/bar/** = fred |
|
643 |
foo/Bar/** = fred |
|
644 |
""" |
|
645 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
646 |
query 1; heads |
11849 | 647 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
648 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
649 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
650 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
651 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
652 |
listing keys for "bookmarks" |
11849 | 653 |
3 changesets found |
654 |
list of changesets: |
|
655 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
656 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
657 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
658 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
659 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
660 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
661 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
662 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
663 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
664 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
665 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
666 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
667 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
668 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
669 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
670 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
671 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
672 |
adding changesets |
11849 | 673 |
add changeset ef1ea85a6374 |
674 |
add changeset f9cafe1212c8 |
|
675 |
add changeset 911600dab2ae |
|
676 |
adding manifests |
|
677 |
adding file changes |
|
678 |
adding foo/Bar/file.txt revisions |
|
679 |
adding foo/file.txt revisions |
|
680 |
adding quux/file.py revisions |
|
681 |
added 3 changesets with 3 changes to 3 files |
|
682 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
683 |
acl: checking access for user "barney" |
11849 | 684 |
acl: acl.allow.branches not enabled |
685 |
acl: acl.deny.branches not enabled |
|
686 |
acl: acl.allow enabled, 0 entries for user barney |
|
687 |
acl: acl.deny enabled, 0 entries for user barney |
|
688 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
689 |
error: pretxnchangegroup.acl hook failed: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
690 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
691 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
692 |
bundle2-input-bundle: 4 parts total |
11849 | 693 |
transaction abort! |
694 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
695 |
abort: acl: user "barney" not allowed on "foo/file.txt" (changeset "ef1ea85a6374") |
11849 | 696 |
no rollback information available |
697 |
0:6675d58eff77 |
|
698 |
||
3426
bb00a5a92c30
Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
699 |
|
11849 | 700 |
barney is allowed everywhere |
3426
bb00a5a92c30
Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
701 |
|
11849 | 702 |
$ echo '[acl.allow]' >> $config |
703 |
$ echo '** = barney' >> $config |
|
704 |
$ do_push barney |
|
705 |
Pushing as user barney |
|
706 |
hgrc = """ |
|
707 |
[hooks] |
|
708 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
709 |
[acl] |
|
710 |
sources = push |
|
711 |
[acl.allow] |
|
712 |
foo/** = fred |
|
713 |
[acl.deny] |
|
714 |
foo/bar/** = fred |
|
715 |
foo/Bar/** = fred |
|
716 |
[acl.allow] |
|
717 |
** = barney |
|
718 |
""" |
|
719 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
720 |
query 1; heads |
11849 | 721 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
722 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
723 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
724 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
725 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
726 |
listing keys for "bookmarks" |
11849 | 727 |
3 changesets found |
728 |
list of changesets: |
|
729 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
730 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
731 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
732 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
733 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
734 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
735 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
736 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
737 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
738 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
739 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
740 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
741 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
742 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
743 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
744 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
745 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
746 |
adding changesets |
11849 | 747 |
add changeset ef1ea85a6374 |
748 |
add changeset f9cafe1212c8 |
|
749 |
add changeset 911600dab2ae |
|
750 |
adding manifests |
|
751 |
adding file changes |
|
752 |
adding foo/Bar/file.txt revisions |
|
753 |
adding foo/file.txt revisions |
|
754 |
adding quux/file.py revisions |
|
755 |
added 3 changesets with 3 changes to 3 files |
|
756 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
757 |
acl: checking access for user "barney" |
11849 | 758 |
acl: acl.allow.branches not enabled |
759 |
acl: acl.deny.branches not enabled |
|
760 |
acl: acl.allow enabled, 1 entries for user barney |
|
761 |
acl: acl.deny enabled, 0 entries for user barney |
|
762 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
763 |
acl: path access granted: "ef1ea85a6374" |
11849 | 764 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
765 |
acl: path access granted: "f9cafe1212c8" |
11849 | 766 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
767 |
acl: path access granted: "911600dab2ae" |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
768 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
769 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
770 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
771 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
772 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
773 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
774 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
775 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
776 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
777 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
778 |
listing keys for "phases" |
13446
1e497df514e2
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
13364
diff
changeset
|
779 |
repository tip rolled back to revision 0 (undo push) |
11849 | 780 |
0:6675d58eff77 |
781 |
||
3426
bb00a5a92c30
Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
782 |
|
11849 | 783 |
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
|
784 |
|
11849 | 785 |
$ echo '**/*.txt = wilma' >> $config |
786 |
$ do_push wilma |
|
787 |
Pushing as user wilma |
|
788 |
hgrc = """ |
|
789 |
[hooks] |
|
790 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
791 |
[acl] |
|
792 |
sources = push |
|
793 |
[acl.allow] |
|
794 |
foo/** = fred |
|
795 |
[acl.deny] |
|
796 |
foo/bar/** = fred |
|
797 |
foo/Bar/** = fred |
|
798 |
[acl.allow] |
|
799 |
** = barney |
|
800 |
**/*.txt = wilma |
|
801 |
""" |
|
802 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
803 |
query 1; heads |
11849 | 804 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
805 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
806 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
807 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
808 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
809 |
listing keys for "bookmarks" |
11849 | 810 |
3 changesets found |
811 |
list of changesets: |
|
812 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
813 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
814 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
815 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
816 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
817 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
818 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
819 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
820 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
821 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
822 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
823 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
824 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
825 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
826 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
827 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
828 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
829 |
adding changesets |
11849 | 830 |
add changeset ef1ea85a6374 |
831 |
add changeset f9cafe1212c8 |
|
832 |
add changeset 911600dab2ae |
|
833 |
adding manifests |
|
834 |
adding file changes |
|
835 |
adding foo/Bar/file.txt revisions |
|
836 |
adding foo/file.txt revisions |
|
837 |
adding quux/file.py revisions |
|
838 |
added 3 changesets with 3 changes to 3 files |
|
839 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
840 |
acl: checking access for user "wilma" |
11849 | 841 |
acl: acl.allow.branches not enabled |
842 |
acl: acl.deny.branches not enabled |
|
843 |
acl: acl.allow enabled, 1 entries for user wilma |
|
844 |
acl: acl.deny enabled, 0 entries for user wilma |
|
845 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
846 |
acl: path access granted: "ef1ea85a6374" |
11849 | 847 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
848 |
acl: path access granted: "f9cafe1212c8" |
11849 | 849 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
850 |
error: pretxnchangegroup.acl hook failed: acl: user "wilma" not allowed on "quux/file.py" (changeset "911600dab2ae") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
851 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
852 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
853 |
bundle2-input-bundle: 4 parts total |
11849 | 854 |
transaction abort! |
855 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
856 |
abort: acl: user "wilma" not allowed on "quux/file.py" (changeset "911600dab2ae") |
11849 | 857 |
no rollback information available |
858 |
0:6675d58eff77 |
|
859 |
||
3426
bb00a5a92c30
Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
860 |
|
11849 | 861 |
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
|
862 |
|
11849 | 863 |
$ echo '[acl]' >> $config |
864 |
$ echo 'config = ../acl.config' >> $config |
|
865 |
$ do_push barney |
|
866 |
Pushing as user barney |
|
867 |
hgrc = """ |
|
868 |
[hooks] |
|
869 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
870 |
[acl] |
|
871 |
sources = push |
|
872 |
[acl.allow] |
|
873 |
foo/** = fred |
|
874 |
[acl.deny] |
|
875 |
foo/bar/** = fred |
|
876 |
foo/Bar/** = fred |
|
877 |
[acl.allow] |
|
878 |
** = barney |
|
879 |
**/*.txt = wilma |
|
880 |
[acl] |
|
881 |
config = ../acl.config |
|
882 |
""" |
|
883 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
884 |
query 1; heads |
11849 | 885 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
886 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
887 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
888 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
889 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
890 |
listing keys for "bookmarks" |
11849 | 891 |
3 changesets found |
892 |
list of changesets: |
|
893 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
894 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
895 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
896 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
897 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
898 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
899 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
900 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
901 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
902 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
903 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
904 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
905 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
906 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
907 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
908 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
909 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
910 |
adding changesets |
11849 | 911 |
add changeset ef1ea85a6374 |
912 |
add changeset f9cafe1212c8 |
|
913 |
add changeset 911600dab2ae |
|
914 |
adding manifests |
|
915 |
adding file changes |
|
916 |
adding foo/Bar/file.txt revisions |
|
917 |
adding foo/file.txt revisions |
|
918 |
adding quux/file.py revisions |
|
919 |
added 3 changesets with 3 changes to 3 files |
|
920 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
921 |
acl: checking access for user "barney" |
33752
82c39a8ec3b1
hg: avoid relying on errno numbers / descriptions
Tristan Seligmann <mithrandi@mithrandi.net>
parents:
32975
diff
changeset
|
922 |
error: pretxnchangegroup.acl hook raised an exception: [Errno *] * (glob) |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
923 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
924 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
925 |
bundle2-input-bundle: 4 parts total |
11849 | 926 |
transaction abort! |
927 |
rollback completed |
|
35230
feecfefeba25
tests: add a substitution for ENOENT/ERROR_FILE_NOT_FOUND messages
Matt Harbison <matt_harbison@yahoo.com>
parents:
34836
diff
changeset
|
928 |
abort: $ENOENT$: ../acl.config |
11849 | 929 |
no rollback information available |
930 |
0:6675d58eff77 |
|
931 |
||
3426
bb00a5a92c30
Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
932 |
|
11849 | 933 |
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
|
934 |
|
11849 | 935 |
$ echo '[acl.allow]' >> acl.config |
936 |
$ echo 'foo/** = betty' >> acl.config |
|
937 |
$ do_push betty |
|
938 |
Pushing as user betty |
|
939 |
hgrc = """ |
|
940 |
[hooks] |
|
941 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
942 |
[acl] |
|
943 |
sources = push |
|
944 |
[acl.allow] |
|
945 |
foo/** = fred |
|
946 |
[acl.deny] |
|
947 |
foo/bar/** = fred |
|
948 |
foo/Bar/** = fred |
|
949 |
[acl.allow] |
|
950 |
** = barney |
|
951 |
**/*.txt = wilma |
|
952 |
[acl] |
|
953 |
config = ../acl.config |
|
954 |
""" |
|
955 |
acl.config = """ |
|
956 |
[acl.allow] |
|
957 |
foo/** = betty |
|
958 |
""" |
|
959 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
960 |
query 1; heads |
11849 | 961 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
962 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
963 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
964 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
965 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
966 |
listing keys for "bookmarks" |
11849 | 967 |
3 changesets found |
968 |
list of changesets: |
|
969 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
970 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
971 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
972 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
973 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
974 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
975 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
976 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
977 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
978 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
979 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
980 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
981 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
982 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
983 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
984 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
985 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
986 |
adding changesets |
11849 | 987 |
add changeset ef1ea85a6374 |
988 |
add changeset f9cafe1212c8 |
|
989 |
add changeset 911600dab2ae |
|
990 |
adding manifests |
|
991 |
adding file changes |
|
992 |
adding foo/Bar/file.txt revisions |
|
993 |
adding foo/file.txt revisions |
|
994 |
adding quux/file.py revisions |
|
995 |
added 3 changesets with 3 changes to 3 files |
|
996 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
997 |
acl: checking access for user "betty" |
11849 | 998 |
acl: acl.allow.branches not enabled |
999 |
acl: acl.deny.branches not enabled |
|
1000 |
acl: acl.allow enabled, 1 entries for user betty |
|
1001 |
acl: acl.deny enabled, 0 entries for user betty |
|
1002 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1003 |
acl: path access granted: "ef1ea85a6374" |
11849 | 1004 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1005 |
acl: path access granted: "f9cafe1212c8" |
11849 | 1006 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1007 |
error: pretxnchangegroup.acl hook failed: acl: user "betty" not allowed on "quux/file.py" (changeset "911600dab2ae") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1008 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1009 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1010 |
bundle2-input-bundle: 4 parts total |
11849 | 1011 |
transaction abort! |
1012 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1013 |
abort: acl: user "betty" not allowed on "quux/file.py" (changeset "911600dab2ae") |
11849 | 1014 |
no rollback information available |
1015 |
0:6675d58eff77 |
|
1016 |
||
3426
bb00a5a92c30
Add a test for the acl extension
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
diff
changeset
|
1017 |
|
11849 | 1018 |
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
|
1019 |
|
11849 | 1020 |
$ echo '[hooks]' >> acl.config |
1021 |
$ echo 'changegroup.acl = false' >> acl.config |
|
1022 |
$ do_push barney |
|
1023 |
Pushing as user barney |
|
1024 |
hgrc = """ |
|
1025 |
[hooks] |
|
1026 |
pretxnchangegroup.acl = python:hgext.acl.hook |
|
1027 |
[acl] |
|
1028 |
sources = push |
|
1029 |
[acl.allow] |
|
1030 |
foo/** = fred |
|
1031 |
[acl.deny] |
|
1032 |
foo/bar/** = fred |
|
1033 |
foo/Bar/** = fred |
|
1034 |
[acl.allow] |
|
1035 |
** = barney |
|
1036 |
**/*.txt = wilma |
|
1037 |
[acl] |
|
1038 |
config = ../acl.config |
|
1039 |
""" |
|
1040 |
acl.config = """ |
|
1041 |
[acl.allow] |
|
1042 |
foo/** = betty |
|
1043 |
[hooks] |
|
1044 |
changegroup.acl = false |
|
1045 |
""" |
|
1046 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1047 |
query 1; heads |
11849 | 1048 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1049 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1050 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1051 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1052 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1053 |
listing keys for "bookmarks" |
11849 | 1054 |
3 changesets found |
1055 |
list of changesets: |
|
1056 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
1057 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
1058 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1059 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1060 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1061 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1062 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1063 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1064 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1065 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1066 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1067 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1068 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1069 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1070 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1071 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1072 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1073 |
adding changesets |
11849 | 1074 |
add changeset ef1ea85a6374 |
1075 |
add changeset f9cafe1212c8 |
|
1076 |
add changeset 911600dab2ae |
|
1077 |
adding manifests |
|
1078 |
adding file changes |
|
1079 |
adding foo/Bar/file.txt revisions |
|
1080 |
adding foo/file.txt revisions |
|
1081 |
adding quux/file.py revisions |
|
1082 |
added 3 changesets with 3 changes to 3 files |
|
1083 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1084 |
acl: checking access for user "barney" |
11849 | 1085 |
acl: acl.allow.branches not enabled |
1086 |
acl: acl.deny.branches not enabled |
|
1087 |
acl: acl.allow enabled, 1 entries for user barney |
|
1088 |
acl: acl.deny enabled, 0 entries for user barney |
|
1089 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1090 |
acl: path access granted: "ef1ea85a6374" |
11849 | 1091 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1092 |
acl: path access granted: "f9cafe1212c8" |
11849 | 1093 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1094 |
acl: path access granted: "911600dab2ae" |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1095 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1096 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1097 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1098 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
1099 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1100 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1101 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
1102 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1103 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1104 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1105 |
listing keys for "phases" |
13446
1e497df514e2
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
13364
diff
changeset
|
1106 |
repository tip rolled back to revision 0 (undo push) |
11849 | 1107 |
0:6675d58eff77 |
1108 |
||
11043
08681cb66231
acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents:
10119
diff
changeset
|
1109 |
|
11849 | 1110 |
asterisk |
1111 |
||
1112 |
$ init_config |
|
1113 |
||
1114 |
asterisk test |
|
1115 |
||
1116 |
$ echo '[acl.allow]' >> $config |
|
1117 |
$ echo "** = fred" >> $config |
|
1118 |
||
1119 |
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
|
1120 |
|
11849 | 1121 |
$ do_push fred |
1122 |
Pushing as user fred |
|
1123 |
hgrc = """ |
|
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1124 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1125 |
pretxnchangegroup.acl = python:hgext.acl.hook |
11849 | 1126 |
[acl] |
1127 |
sources = push |
|
1128 |
[extensions] |
|
1129 |
[acl.allow] |
|
1130 |
** = fred |
|
1131 |
""" |
|
1132 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1133 |
query 1; heads |
11849 | 1134 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1135 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1136 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1137 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1138 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1139 |
listing keys for "bookmarks" |
11849 | 1140 |
3 changesets found |
1141 |
list of changesets: |
|
1142 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
1143 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
1144 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1145 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1146 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1147 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1148 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1149 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1150 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1151 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1152 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1153 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1154 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1155 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1156 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1157 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1158 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1159 |
adding changesets |
11849 | 1160 |
add changeset ef1ea85a6374 |
1161 |
add changeset f9cafe1212c8 |
|
1162 |
add changeset 911600dab2ae |
|
1163 |
adding manifests |
|
1164 |
adding file changes |
|
1165 |
adding foo/Bar/file.txt revisions |
|
1166 |
adding foo/file.txt revisions |
|
1167 |
adding quux/file.py revisions |
|
1168 |
added 3 changesets with 3 changes to 3 files |
|
1169 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1170 |
acl: checking access for user "fred" |
11849 | 1171 |
acl: acl.allow.branches not enabled |
1172 |
acl: acl.deny.branches not enabled |
|
1173 |
acl: acl.allow enabled, 1 entries for user fred |
|
1174 |
acl: acl.deny not enabled |
|
1175 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1176 |
acl: path access granted: "ef1ea85a6374" |
11849 | 1177 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1178 |
acl: path access granted: "f9cafe1212c8" |
11849 | 1179 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1180 |
acl: path access granted: "911600dab2ae" |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1181 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1182 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1183 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1184 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
1185 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1186 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1187 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
1188 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1189 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1190 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1191 |
listing keys for "phases" |
13446
1e497df514e2
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
13364
diff
changeset
|
1192 |
repository tip rolled back to revision 0 (undo push) |
11849 | 1193 |
0:6675d58eff77 |
1194 |
||
11043
08681cb66231
acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents:
10119
diff
changeset
|
1195 |
|
11849 | 1196 |
$ echo '[acl.deny]' >> $config |
1197 |
$ echo "foo/Bar/** = *" >> $config |
|
1198 |
||
1199 |
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
|
1200 |
|
11849 | 1201 |
$ do_push fred |
1202 |
Pushing as user fred |
|
1203 |
hgrc = """ |
|
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1204 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1205 |
pretxnchangegroup.acl = python:hgext.acl.hook |
11849 | 1206 |
[acl] |
1207 |
sources = push |
|
1208 |
[extensions] |
|
1209 |
[acl.allow] |
|
1210 |
** = fred |
|
1211 |
[acl.deny] |
|
1212 |
foo/Bar/** = * |
|
1213 |
""" |
|
1214 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1215 |
query 1; heads |
11849 | 1216 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1217 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1218 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1219 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1220 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1221 |
listing keys for "bookmarks" |
11849 | 1222 |
3 changesets found |
1223 |
list of changesets: |
|
1224 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
1225 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
1226 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1227 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1228 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1229 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1230 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1231 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1232 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1233 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1234 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1235 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1236 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1237 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1238 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1239 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1240 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1241 |
adding changesets |
11849 | 1242 |
add changeset ef1ea85a6374 |
1243 |
add changeset f9cafe1212c8 |
|
1244 |
add changeset 911600dab2ae |
|
1245 |
adding manifests |
|
1246 |
adding file changes |
|
1247 |
adding foo/Bar/file.txt revisions |
|
1248 |
adding foo/file.txt revisions |
|
1249 |
adding quux/file.py revisions |
|
1250 |
added 3 changesets with 3 changes to 3 files |
|
1251 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1252 |
acl: checking access for user "fred" |
11849 | 1253 |
acl: acl.allow.branches not enabled |
1254 |
acl: acl.deny.branches not enabled |
|
1255 |
acl: acl.allow enabled, 1 entries for user fred |
|
1256 |
acl: acl.deny enabled, 1 entries for user fred |
|
1257 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1258 |
acl: path access granted: "ef1ea85a6374" |
11849 | 1259 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1260 |
error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1261 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1262 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1263 |
bundle2-input-bundle: 4 parts total |
11849 | 1264 |
transaction abort! |
1265 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1266 |
abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") |
11849 | 1267 |
no rollback information available |
1268 |
0:6675d58eff77 |
|
1269 |
||
11043
08681cb66231
acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents:
10119
diff
changeset
|
1270 |
|
11849 | 1271 |
Groups |
1272 |
||
1273 |
$ init_config |
|
1274 |
||
1275 |
OS-level groups |
|
1276 |
||
1277 |
$ echo '[acl.allow]' >> $config |
|
1278 |
$ echo "** = @group1" >> $config |
|
1279 |
||
1280 |
@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
|
1281 |
|
11849 | 1282 |
$ do_push fred |
1283 |
Pushing as user fred |
|
1284 |
hgrc = """ |
|
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1285 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1286 |
pretxnchangegroup.acl = python:hgext.acl.hook |
11849 | 1287 |
[acl] |
1288 |
sources = push |
|
1289 |
[extensions] |
|
1290 |
[acl.allow] |
|
1291 |
** = @group1 |
|
1292 |
""" |
|
1293 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1294 |
query 1; heads |
11849 | 1295 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1296 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1297 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1298 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1299 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1300 |
listing keys for "bookmarks" |
11849 | 1301 |
3 changesets found |
1302 |
list of changesets: |
|
1303 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
1304 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
1305 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1306 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1307 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1308 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1309 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1310 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1311 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1312 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1313 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1314 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1315 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1316 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1317 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1318 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1319 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1320 |
adding changesets |
11849 | 1321 |
add changeset ef1ea85a6374 |
1322 |
add changeset f9cafe1212c8 |
|
1323 |
add changeset 911600dab2ae |
|
1324 |
adding manifests |
|
1325 |
adding file changes |
|
1326 |
adding foo/Bar/file.txt revisions |
|
1327 |
adding foo/file.txt revisions |
|
1328 |
adding quux/file.py revisions |
|
1329 |
added 3 changesets with 3 changes to 3 files |
|
1330 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1331 |
acl: checking access for user "fred" |
11849 | 1332 |
acl: acl.allow.branches not enabled |
1333 |
acl: acl.deny.branches not enabled |
|
1334 |
acl: "group1" not defined in [acl.groups] |
|
1335 |
acl: acl.allow enabled, 1 entries for user fred |
|
1336 |
acl: acl.deny not enabled |
|
1337 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1338 |
acl: path access granted: "ef1ea85a6374" |
11849 | 1339 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1340 |
acl: path access granted: "f9cafe1212c8" |
11849 | 1341 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1342 |
acl: path access granted: "911600dab2ae" |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1343 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1344 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1345 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1346 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
1347 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1348 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1349 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
1350 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1351 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1352 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1353 |
listing keys for "phases" |
13446
1e497df514e2
rollback: clarifies the message about the reverted state (issue2628)
Gilles Moris <gilles.moris@free.fr>
parents:
13364
diff
changeset
|
1354 |
repository tip rolled back to revision 0 (undo push) |
11849 | 1355 |
0:6675d58eff77 |
1356 |
||
1357 |
||
1358 |
$ echo '[acl.deny]' >> $config |
|
1359 |
$ echo "foo/Bar/** = @group1" >> $config |
|
1360 |
||
1361 |
@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
|
1362 |
|
11849 | 1363 |
$ do_push fred |
1364 |
Pushing as user fred |
|
1365 |
hgrc = """ |
|
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1366 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1367 |
pretxnchangegroup.acl = python:hgext.acl.hook |
11849 | 1368 |
[acl] |
1369 |
sources = push |
|
1370 |
[extensions] |
|
1371 |
[acl.allow] |
|
1372 |
** = @group1 |
|
1373 |
[acl.deny] |
|
1374 |
foo/Bar/** = @group1 |
|
1375 |
""" |
|
1376 |
pushing to ../b |
|
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1377 |
query 1; heads |
11849 | 1378 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1379 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1380 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1381 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1382 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1383 |
listing keys for "bookmarks" |
11849 | 1384 |
3 changesets found |
1385 |
list of changesets: |
|
1386 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
|
1387 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
|
1388 |
911600dab2ae7a9baff75958b84fe606851ce955 |
|
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1389 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1390 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1391 |
bundle2-output-part: "check:phases" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1392 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1393 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1394 |
bundle2-output-part: "phase-heads" 24 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1395 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1396 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1397 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1398 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1399 |
bundle2-input-part: total payload size 24 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1400 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1401 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1402 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1403 |
adding changesets |
11849 | 1404 |
add changeset ef1ea85a6374 |
1405 |
add changeset f9cafe1212c8 |
|
1406 |
add changeset 911600dab2ae |
|
1407 |
adding manifests |
|
1408 |
adding file changes |
|
1409 |
adding foo/Bar/file.txt revisions |
|
1410 |
adding foo/file.txt revisions |
|
1411 |
adding quux/file.py revisions |
|
1412 |
added 3 changesets with 3 changes to 3 files |
|
1413 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1414 |
acl: checking access for user "fred" |
11849 | 1415 |
acl: acl.allow.branches not enabled |
1416 |
acl: acl.deny.branches not enabled |
|
1417 |
acl: "group1" not defined in [acl.groups] |
|
1418 |
acl: acl.allow enabled, 1 entries for user fred |
|
1419 |
acl: "group1" not defined in [acl.groups] |
|
1420 |
acl: acl.deny enabled, 1 entries for user fred |
|
1421 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1422 |
acl: path access granted: "ef1ea85a6374" |
11849 | 1423 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1424 |
error: pretxnchangegroup.acl hook failed: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1425 |
bundle2-input-part: total payload size 1553 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1426 |
bundle2-input-part: total payload size 24 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1427 |
bundle2-input-bundle: 4 parts total |
11849 | 1428 |
transaction abort! |
1429 |
rollback completed |
|
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1430 |
abort: acl: user "fred" denied on "foo/Bar/file.txt" (changeset "f9cafe1212c8") |
11849 | 1431 |
no rollback information available |
1432 |
0:6675d58eff77 |
|
1433 |
||
11043
08681cb66231
acl: add tests for asterisk and for OS-level groups
Elifarley Callado Coelho Cruz <elifarley@gmail.com>
parents:
10119
diff
changeset
|
1434 |
|
11849 | 1435 |
Invalid group |
1436 |
||
1437 |
Disable the fakegroups trick to get real failures |
|
1438 |
||
1439 |
$ grep -v fakegroups $config > config.tmp |
|
1440 |
$ mv config.tmp $config |
|
1441 |
$ echo '[acl.allow]' >> $config |
|
1442 |
$ echo "** = @unlikelytoexist" >> $config |
|
1443 |
$ do_push fred 2>&1 | grep unlikelytoexist |
|
1444 |
** = @unlikelytoexist |
|
1445 |
acl: "unlikelytoexist" not defined in [acl.groups] |
|
1446 |
error: pretxnchangegroup.acl hook failed: group 'unlikelytoexist' is undefined |
|
1447 |
abort: group 'unlikelytoexist' is undefined |
|
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1448 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1449 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1450 |
Branch acl tests setup |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1451 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1452 |
$ init_config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1453 |
$ cd b |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1454 |
$ hg up |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1455 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1456 |
$ hg branch foobar |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1457 |
marked working directory as branch foobar |
15615 | 1458 |
(branches are permanent and global, did you want a bookmark?) |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1459 |
$ hg commit -m 'create foobar' |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1460 |
$ echo 'foo contents' > abc.txt |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1461 |
$ hg add abc.txt |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1462 |
$ hg commit -m 'foobar contents' |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1463 |
$ cd .. |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1464 |
$ hg --cwd a pull ../b |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1465 |
pulling from ../b |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1466 |
searching for changes |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1467 |
adding changesets |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1468 |
adding manifests |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1469 |
adding file changes |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1470 |
added 2 changesets with 1 changes to 1 files (+1 heads) |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
34322
diff
changeset
|
1471 |
new changesets 81fbf4469322:fb35475503ef |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1472 |
(run 'hg heads' to see heads) |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1473 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1474 |
Create additional changeset on foobar branch |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1475 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1476 |
$ cd a |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1477 |
$ hg up -C foobar |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1478 |
4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1479 |
$ echo 'foo contents2' > abc.txt |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1480 |
$ hg commit -m 'foobar contents2' |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1481 |
$ cd .. |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1482 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1483 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1484 |
No branch acls specified |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1485 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1486 |
$ do_push astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1487 |
Pushing as user astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1488 |
hgrc = """ |
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1489 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1490 |
pretxnchangegroup.acl = python:hgext.acl.hook |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1491 |
[acl] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1492 |
sources = push |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1493 |
[extensions] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1494 |
""" |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1495 |
pushing to ../b |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1496 |
query 1; heads |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1497 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1498 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1499 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1500 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1501 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1502 |
listing keys for "bookmarks" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1503 |
4 changesets found |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1504 |
list of changesets: |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1505 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1506 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1507 |
911600dab2ae7a9baff75958b84fe606851ce955 |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1508 |
e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1509 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1510 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1511 |
bundle2-output-part: "check:phases" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1512 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1513 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1514 |
bundle2-output-part: "phase-heads" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1515 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1516 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1517 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1518 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1519 |
bundle2-input-part: total payload size 48 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1520 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1521 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1522 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1523 |
adding changesets |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1524 |
add changeset ef1ea85a6374 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1525 |
add changeset f9cafe1212c8 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1526 |
add changeset 911600dab2ae |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1527 |
add changeset e8fc755d4d82 |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1528 |
adding manifests |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1529 |
adding file changes |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1530 |
adding abc.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1531 |
adding foo/Bar/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1532 |
adding foo/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1533 |
adding quux/file.py revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1534 |
added 4 changesets with 4 changes to 4 files (+1 heads) |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1535 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1536 |
acl: checking access for user "astro" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1537 |
acl: acl.allow.branches not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1538 |
acl: acl.deny.branches not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1539 |
acl: acl.allow not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1540 |
acl: acl.deny not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1541 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1542 |
acl: path access granted: "ef1ea85a6374" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1543 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1544 |
acl: path access granted: "f9cafe1212c8" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1545 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1546 |
acl: path access granted: "911600dab2ae" |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1547 |
acl: branch access granted: "e8fc755d4d82" on branch "foobar" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1548 |
acl: path access granted: "e8fc755d4d82" |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1549 |
bundle2-input-part: total payload size 2068 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1550 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1551 |
bundle2-input-part: total payload size 48 |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1552 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
1553 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1554 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1555 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
1556 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1557 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1558 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1559 |
listing keys for "phases" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1560 |
repository tip rolled back to revision 2 (undo push) |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1561 |
2:fb35475503ef |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1562 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1563 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1564 |
Branch acl deny test |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1565 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1566 |
$ echo "[acl.deny.branches]" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1567 |
$ echo "foobar = *" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1568 |
$ do_push astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1569 |
Pushing as user astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1570 |
hgrc = """ |
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1571 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1572 |
pretxnchangegroup.acl = python:hgext.acl.hook |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1573 |
[acl] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1574 |
sources = push |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1575 |
[extensions] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1576 |
[acl.deny.branches] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1577 |
foobar = * |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1578 |
""" |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1579 |
pushing to ../b |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1580 |
query 1; heads |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1581 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1582 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1583 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1584 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1585 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1586 |
listing keys for "bookmarks" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1587 |
4 changesets found |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1588 |
list of changesets: |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1589 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1590 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1591 |
911600dab2ae7a9baff75958b84fe606851ce955 |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1592 |
e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1593 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1594 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1595 |
bundle2-output-part: "check:phases" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1596 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1597 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1598 |
bundle2-output-part: "phase-heads" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1599 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1600 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1601 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1602 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1603 |
bundle2-input-part: total payload size 48 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1604 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1605 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1606 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1607 |
adding changesets |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1608 |
add changeset ef1ea85a6374 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1609 |
add changeset f9cafe1212c8 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1610 |
add changeset 911600dab2ae |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1611 |
add changeset e8fc755d4d82 |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1612 |
adding manifests |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1613 |
adding file changes |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1614 |
adding abc.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1615 |
adding foo/Bar/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1616 |
adding foo/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1617 |
adding quux/file.py revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1618 |
added 4 changesets with 4 changes to 4 files (+1 heads) |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1619 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1620 |
acl: checking access for user "astro" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1621 |
acl: acl.allow.branches not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1622 |
acl: acl.deny.branches enabled, 1 entries for user astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1623 |
acl: acl.allow not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1624 |
acl: acl.deny not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1625 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1626 |
acl: path access granted: "ef1ea85a6374" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1627 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1628 |
acl: path access granted: "f9cafe1212c8" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1629 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1630 |
acl: path access granted: "911600dab2ae" |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1631 |
error: pretxnchangegroup.acl hook failed: acl: user "astro" denied on branch "foobar" (changeset "e8fc755d4d82") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1632 |
bundle2-input-part: total payload size 2068 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1633 |
bundle2-input-part: total payload size 48 |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1634 |
bundle2-input-bundle: 4 parts total |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1635 |
transaction abort! |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1636 |
rollback completed |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1637 |
abort: acl: user "astro" denied on branch "foobar" (changeset "e8fc755d4d82") |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1638 |
no rollback information available |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1639 |
2:fb35475503ef |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1640 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1641 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1642 |
Branch acl empty allow test |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1643 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1644 |
$ init_config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1645 |
$ echo "[acl.allow.branches]" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1646 |
$ do_push astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1647 |
Pushing as user astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1648 |
hgrc = """ |
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1649 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1650 |
pretxnchangegroup.acl = python:hgext.acl.hook |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1651 |
[acl] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1652 |
sources = push |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1653 |
[extensions] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1654 |
[acl.allow.branches] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1655 |
""" |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1656 |
pushing to ../b |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1657 |
query 1; heads |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1658 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1659 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1660 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1661 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1662 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1663 |
listing keys for "bookmarks" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1664 |
4 changesets found |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1665 |
list of changesets: |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1666 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1667 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1668 |
911600dab2ae7a9baff75958b84fe606851ce955 |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1669 |
e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1670 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1671 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1672 |
bundle2-output-part: "check:phases" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1673 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1674 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1675 |
bundle2-output-part: "phase-heads" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1676 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1677 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1678 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1679 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1680 |
bundle2-input-part: total payload size 48 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1681 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1682 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1683 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1684 |
adding changesets |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1685 |
add changeset ef1ea85a6374 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1686 |
add changeset f9cafe1212c8 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1687 |
add changeset 911600dab2ae |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1688 |
add changeset e8fc755d4d82 |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1689 |
adding manifests |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1690 |
adding file changes |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1691 |
adding abc.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1692 |
adding foo/Bar/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1693 |
adding foo/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1694 |
adding quux/file.py revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1695 |
added 4 changesets with 4 changes to 4 files (+1 heads) |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1696 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1697 |
acl: checking access for user "astro" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1698 |
acl: acl.allow.branches enabled, 0 entries for user astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1699 |
acl: acl.deny.branches not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1700 |
acl: acl.allow not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1701 |
acl: acl.deny not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1702 |
error: pretxnchangegroup.acl hook failed: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1703 |
bundle2-input-part: total payload size 2068 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1704 |
bundle2-input-part: total payload size 48 |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1705 |
bundle2-input-bundle: 4 parts total |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1706 |
transaction abort! |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1707 |
rollback completed |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1708 |
abort: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374") |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1709 |
no rollback information available |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1710 |
2:fb35475503ef |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1711 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1712 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1713 |
Branch acl allow other |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1714 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1715 |
$ init_config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1716 |
$ echo "[acl.allow.branches]" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1717 |
$ echo "* = george" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1718 |
$ do_push astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1719 |
Pushing as user astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1720 |
hgrc = """ |
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1721 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1722 |
pretxnchangegroup.acl = python:hgext.acl.hook |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1723 |
[acl] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1724 |
sources = push |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1725 |
[extensions] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1726 |
[acl.allow.branches] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1727 |
* = george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1728 |
""" |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1729 |
pushing to ../b |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1730 |
query 1; heads |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1731 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1732 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1733 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1734 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1735 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1736 |
listing keys for "bookmarks" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1737 |
4 changesets found |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1738 |
list of changesets: |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1739 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1740 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1741 |
911600dab2ae7a9baff75958b84fe606851ce955 |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1742 |
e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1743 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1744 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1745 |
bundle2-output-part: "check:phases" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1746 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1747 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1748 |
bundle2-output-part: "phase-heads" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1749 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1750 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1751 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1752 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1753 |
bundle2-input-part: total payload size 48 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1754 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1755 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1756 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1757 |
adding changesets |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1758 |
add changeset ef1ea85a6374 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1759 |
add changeset f9cafe1212c8 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1760 |
add changeset 911600dab2ae |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1761 |
add changeset e8fc755d4d82 |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1762 |
adding manifests |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1763 |
adding file changes |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1764 |
adding abc.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1765 |
adding foo/Bar/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1766 |
adding foo/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1767 |
adding quux/file.py revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1768 |
added 4 changesets with 4 changes to 4 files (+1 heads) |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1769 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1770 |
acl: checking access for user "astro" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1771 |
acl: acl.allow.branches enabled, 0 entries for user astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1772 |
acl: acl.deny.branches not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1773 |
acl: acl.allow not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1774 |
acl: acl.deny not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1775 |
error: pretxnchangegroup.acl hook failed: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1776 |
bundle2-input-part: total payload size 2068 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1777 |
bundle2-input-part: total payload size 48 |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1778 |
bundle2-input-bundle: 4 parts total |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1779 |
transaction abort! |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1780 |
rollback completed |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1781 |
abort: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374") |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1782 |
no rollback information available |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1783 |
2:fb35475503ef |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1784 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1785 |
$ do_push george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1786 |
Pushing as user george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1787 |
hgrc = """ |
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1788 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1789 |
pretxnchangegroup.acl = python:hgext.acl.hook |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1790 |
[acl] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1791 |
sources = push |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1792 |
[extensions] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1793 |
[acl.allow.branches] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1794 |
* = george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1795 |
""" |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1796 |
pushing to ../b |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1797 |
query 1; heads |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1798 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1799 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1800 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1801 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1802 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1803 |
listing keys for "bookmarks" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1804 |
4 changesets found |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1805 |
list of changesets: |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1806 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1807 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1808 |
911600dab2ae7a9baff75958b84fe606851ce955 |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1809 |
e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1810 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1811 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1812 |
bundle2-output-part: "check:phases" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1813 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1814 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1815 |
bundle2-output-part: "phase-heads" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1816 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1817 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1818 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1819 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1820 |
bundle2-input-part: total payload size 48 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1821 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1822 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1823 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1824 |
adding changesets |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1825 |
add changeset ef1ea85a6374 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1826 |
add changeset f9cafe1212c8 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1827 |
add changeset 911600dab2ae |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1828 |
add changeset e8fc755d4d82 |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1829 |
adding manifests |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1830 |
adding file changes |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1831 |
adding abc.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1832 |
adding foo/Bar/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1833 |
adding foo/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1834 |
adding quux/file.py revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1835 |
added 4 changesets with 4 changes to 4 files (+1 heads) |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1836 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1837 |
acl: checking access for user "george" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1838 |
acl: acl.allow.branches enabled, 1 entries for user george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1839 |
acl: acl.deny.branches not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1840 |
acl: acl.allow not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1841 |
acl: acl.deny not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1842 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1843 |
acl: path access granted: "ef1ea85a6374" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1844 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1845 |
acl: path access granted: "f9cafe1212c8" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1846 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1847 |
acl: path access granted: "911600dab2ae" |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1848 |
acl: branch access granted: "e8fc755d4d82" on branch "foobar" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1849 |
acl: path access granted: "e8fc755d4d82" |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1850 |
bundle2-input-part: total payload size 2068 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1851 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1852 |
bundle2-input-part: total payload size 48 |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1853 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
1854 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1855 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1856 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
1857 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1858 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1859 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1860 |
listing keys for "phases" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1861 |
repository tip rolled back to revision 2 (undo push) |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1862 |
2:fb35475503ef |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1863 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1864 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1865 |
Branch acl conflicting allow |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1866 |
asterisk ends up applying to all branches and allowing george to |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1867 |
push foobar into the remote |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1868 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1869 |
$ init_config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1870 |
$ echo "[acl.allow.branches]" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1871 |
$ echo "foobar = astro" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1872 |
$ echo "* = george" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1873 |
$ do_push george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1874 |
Pushing as user george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1875 |
hgrc = """ |
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1876 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1877 |
pretxnchangegroup.acl = python:hgext.acl.hook |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1878 |
[acl] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1879 |
sources = push |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1880 |
[extensions] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1881 |
[acl.allow.branches] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1882 |
foobar = astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1883 |
* = george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1884 |
""" |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1885 |
pushing to ../b |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1886 |
query 1; heads |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1887 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1888 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1889 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1890 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1891 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1892 |
listing keys for "bookmarks" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1893 |
4 changesets found |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1894 |
list of changesets: |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1895 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1896 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1897 |
911600dab2ae7a9baff75958b84fe606851ce955 |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1898 |
e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1899 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1900 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1901 |
bundle2-output-part: "check:phases" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1902 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1903 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1904 |
bundle2-output-part: "phase-heads" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1905 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1906 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1907 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1908 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1909 |
bundle2-input-part: total payload size 48 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1910 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1911 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1912 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
1913 |
adding changesets |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1914 |
add changeset ef1ea85a6374 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1915 |
add changeset f9cafe1212c8 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1916 |
add changeset 911600dab2ae |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1917 |
add changeset e8fc755d4d82 |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1918 |
adding manifests |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1919 |
adding file changes |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1920 |
adding abc.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1921 |
adding foo/Bar/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1922 |
adding foo/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1923 |
adding quux/file.py revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1924 |
added 4 changesets with 4 changes to 4 files (+1 heads) |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1925 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1926 |
acl: checking access for user "george" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1927 |
acl: acl.allow.branches enabled, 1 entries for user george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1928 |
acl: acl.deny.branches not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1929 |
acl: acl.allow not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1930 |
acl: acl.deny not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1931 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1932 |
acl: path access granted: "ef1ea85a6374" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1933 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1934 |
acl: path access granted: "f9cafe1212c8" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1935 |
acl: branch access granted: "911600dab2ae" on branch "default" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1936 |
acl: path access granted: "911600dab2ae" |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1937 |
acl: branch access granted: "e8fc755d4d82" on branch "foobar" |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
1938 |
acl: path access granted: "e8fc755d4d82" |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
1939 |
bundle2-input-part: total payload size 2068 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1940 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1941 |
bundle2-input-part: total payload size 48 |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1942 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
1943 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1944 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1945 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
1946 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1947 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1948 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1949 |
listing keys for "phases" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1950 |
repository tip rolled back to revision 2 (undo push) |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1951 |
2:fb35475503ef |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1952 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1953 |
Branch acl conflicting deny |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1954 |
|
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1955 |
$ init_config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1956 |
$ echo "[acl.deny.branches]" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1957 |
$ echo "foobar = astro" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1958 |
$ echo "default = astro" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1959 |
$ echo "* = george" >> $config |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1960 |
$ do_push george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1961 |
Pushing as user george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1962 |
hgrc = """ |
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1963 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
1964 |
pretxnchangegroup.acl = python:hgext.acl.hook |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1965 |
[acl] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1966 |
sources = push |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1967 |
[extensions] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1968 |
[acl.deny.branches] |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1969 |
foobar = astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1970 |
default = astro |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1971 |
* = george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1972 |
""" |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1973 |
pushing to ../b |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1974 |
query 1; heads |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1975 |
searching for changes |
14164
cb98fed52495
discovery: add new set-based discovery
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14162
diff
changeset
|
1976 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
1977 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1978 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
1979 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
1980 |
listing keys for "bookmarks" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1981 |
4 changesets found |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1982 |
list of changesets: |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1983 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1984 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
1985 |
911600dab2ae7a9baff75958b84fe606851ce955 |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
1986 |
e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1987 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1988 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1989 |
bundle2-output-part: "check:phases" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1990 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1991 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
1992 |
bundle2-output-part: "phase-heads" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1993 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1994 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
1995 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1996 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
1997 |
bundle2-input-part: total payload size 48 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1998 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
1999 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2000 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
2001 |
adding changesets |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2002 |
add changeset ef1ea85a6374 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2003 |
add changeset f9cafe1212c8 |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2004 |
add changeset 911600dab2ae |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
2005 |
add changeset e8fc755d4d82 |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2006 |
adding manifests |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2007 |
adding file changes |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2008 |
adding abc.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2009 |
adding foo/Bar/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2010 |
adding foo/file.txt revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2011 |
adding quux/file.py revisions |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2012 |
added 4 changesets with 4 changes to 4 files (+1 heads) |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2013 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
15207
0f7f9f06c759
acl: more descriptive error messages
Elifarley Callado Coelho Cruz
parents:
15131
diff
changeset
|
2014 |
acl: checking access for user "george" |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2015 |
acl: acl.allow.branches not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2016 |
acl: acl.deny.branches enabled, 1 entries for user george |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2017 |
acl: acl.allow not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2018 |
acl: acl.deny not enabled |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2019 |
error: pretxnchangegroup.acl hook failed: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
2020 |
bundle2-input-part: total payload size 2068 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2021 |
bundle2-input-part: total payload size 48 |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2022 |
bundle2-input-bundle: 4 parts total |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2023 |
transaction abort! |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2024 |
rollback completed |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2025 |
abort: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374") |
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2026 |
no rollback information available |
14162
301725c3df9a
localrepo: reuse parent manifest in commitctx if no files have changed
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
14073
diff
changeset
|
2027 |
2:fb35475503ef |
13917
3259a067c102
acl: add branch tests for the current behavior of acl extension
John Mulligan <phlogistonjohn@asynchrono.us>
parents:
13783
diff
changeset
|
2028 |
|
16956
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2029 |
User 'astro' must not be denied |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2030 |
|
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2031 |
$ init_config |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2032 |
$ echo "[acl.deny.branches]" >> $config |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2033 |
$ echo "default = !astro" >> $config |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2034 |
$ do_push astro |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2035 |
Pushing as user astro |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2036 |
hgrc = """ |
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
2037 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
2038 |
pretxnchangegroup.acl = python:hgext.acl.hook |
16956
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2039 |
[acl] |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2040 |
sources = push |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2041 |
[extensions] |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2042 |
[acl.deny.branches] |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2043 |
default = !astro |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2044 |
""" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2045 |
pushing to ../b |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2046 |
query 1; heads |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2047 |
searching for changes |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2048 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
2049 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
2050 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
2051 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
2052 |
listing keys for "bookmarks" |
16956
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2053 |
4 changesets found |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2054 |
list of changesets: |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2055 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2056 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2057 |
911600dab2ae7a9baff75958b84fe606851ce955 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2058 |
e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2059 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
2060 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
2061 |
bundle2-output-part: "check:phases" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2062 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2063 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2064 |
bundle2-output-part: "phase-heads" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2065 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2066 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
2067 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
2068 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
2069 |
bundle2-input-part: total payload size 48 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2070 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2071 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2072 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
2073 |
adding changesets |
16956
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2074 |
add changeset ef1ea85a6374 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2075 |
add changeset f9cafe1212c8 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2076 |
add changeset 911600dab2ae |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2077 |
add changeset e8fc755d4d82 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2078 |
adding manifests |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2079 |
adding file changes |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2080 |
adding abc.txt revisions |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2081 |
adding foo/Bar/file.txt revisions |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2082 |
adding foo/file.txt revisions |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2083 |
adding quux/file.py revisions |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2084 |
added 4 changesets with 4 changes to 4 files (+1 heads) |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2085 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2086 |
acl: checking access for user "astro" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2087 |
acl: acl.allow.branches not enabled |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2088 |
acl: acl.deny.branches enabled, 0 entries for user astro |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2089 |
acl: acl.allow not enabled |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2090 |
acl: acl.deny not enabled |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2091 |
acl: branch access granted: "ef1ea85a6374" on branch "default" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2092 |
acl: path access granted: "ef1ea85a6374" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2093 |
acl: branch access granted: "f9cafe1212c8" on branch "default" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2094 |
acl: path access granted: "f9cafe1212c8" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2095 |
acl: branch access granted: "911600dab2ae" on branch "default" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2096 |
acl: path access granted: "911600dab2ae" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2097 |
acl: branch access granted: "e8fc755d4d82" on branch "foobar" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2098 |
acl: path access granted: "e8fc755d4d82" |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
2099 |
bundle2-input-part: total payload size 2068 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2100 |
bundle2-input-part: "phase-heads" supported |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2101 |
bundle2-input-part: total payload size 48 |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2102 |
bundle2-input-bundle: 4 parts total |
32267
c2380b448265
caches: move the 'updating the branch cache' message in 'updatecaches'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30211
diff
changeset
|
2103 |
updating the branch cache |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2104 |
bundle2-output-bundle: "HG20", 1 parts total |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2105 |
bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
32975
560ceb654180
bundle2: don't use debug message "no-transaction" with transaction
Martin von Zweigbergk <martinvonz@google.com>
parents:
32268
diff
changeset
|
2106 |
bundle2-input-bundle: no-transaction |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2107 |
bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2108 |
bundle2-input-bundle: 0 parts total |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
2109 |
listing keys for "phases" |
16956
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2110 |
repository tip rolled back to revision 2 (undo push) |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2111 |
2:fb35475503ef |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2112 |
|
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2113 |
|
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2114 |
Non-astro users must be denied |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2115 |
|
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2116 |
$ do_push george |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2117 |
Pushing as user george |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2118 |
hgrc = """ |
22379
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
2119 |
[hooks] |
38a393d59e77
test-acl: alter sed construct to avoid changes in .hg/hgrc formatting
Augie Fackler <raf@durin42.com>
parents:
22239
diff
changeset
|
2120 |
pretxnchangegroup.acl = python:hgext.acl.hook |
16956
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2121 |
[acl] |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2122 |
sources = push |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2123 |
[extensions] |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2124 |
[acl.deny.branches] |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2125 |
default = !astro |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2126 |
""" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2127 |
pushing to ../b |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2128 |
query 1; heads |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2129 |
searching for changes |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2130 |
all remote heads known locally |
22019
9fcf772f15ff
push: perform phases discovery before the push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
21070
diff
changeset
|
2131 |
listing keys for "phases" |
22239
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
2132 |
checking for updated bookmarks |
0688010ee38f
push: move bookmark discovery with other discovery steps
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
22019
diff
changeset
|
2133 |
listing keys for "bookmarks" |
17293
d3f84ccc5495
pushkey: add more verbose debug output regarding pushkey
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
16956
diff
changeset
|
2134 |
listing keys for "bookmarks" |
16956
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2135 |
4 changesets found |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2136 |
list of changesets: |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2137 |
ef1ea85a6374b77d6da9dcda9541f498f2d17df7 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2138 |
f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2139 |
911600dab2ae7a9baff75958b84fe606851ce955 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2140 |
e8fc755d4d8217ee5b0c2bb41558c40d43b92c01 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2141 |
bundle2-output-bundle: "HG20", 5 parts total |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
2142 |
bundle2-output-part: "replycaps" 188 bytes payload |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
2143 |
bundle2-output-part: "check:phases" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2144 |
bundle2-output-part: "check:heads" streamed payload |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2145 |
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2146 |
bundle2-output-part: "phase-heads" 48 bytes payload |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2147 |
bundle2-input-bundle: with-transaction |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2148 |
bundle2-input-part: "replycaps" supported |
35792
1d118f9f4f57
bundle2: always advertise client support for stream parts
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35259
diff
changeset
|
2149 |
bundle2-input-part: total payload size 188 |
34821
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
2150 |
bundle2-input-part: "check:phases" supported |
aa5e7b4a3a01
phase: generate a push-race detection part on push
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
2151 |
bundle2-input-part: total payload size 48 |
25373
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2152 |
bundle2-input-part: "check:heads" supported |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2153 |
bundle2-input-part: total payload size 20 |
9793e52279a1
test: use bundle2 in test-acl
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
25125
diff
changeset
|
2154 |
bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
21070
408877d491fb
bundle2: feed a binary stream to `peer.unbundle`
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
20969
diff
changeset
|
2155 |
adding changesets |
16956
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2156 |
add changeset ef1ea85a6374 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2157 |
add changeset f9cafe1212c8 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2158 |
add changeset 911600dab2ae |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2159 |
add changeset e8fc755d4d82 |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2160 |
adding manifests |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2161 |
adding file changes |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2162 |
adding abc.txt revisions |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2163 |
adding foo/Bar/file.txt revisions |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2164 |
adding foo/file.txt revisions |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2165 |
adding quux/file.py revisions |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2166 |
added 4 changesets with 4 changes to 4 files (+1 heads) |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2167 |
calling hook pretxnchangegroup.acl: hgext.acl.hook |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2168 |
acl: checking access for user "george" |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2169 |
acl: acl.allow.branches not enabled |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2170 |
acl: acl.deny.branches enabled, 1 entries for user george |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2171 |
acl: acl.allow not enabled |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2172 |
acl: acl.deny not enabled |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2173 |
error: pretxnchangegroup.acl hook failed: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374") |
30211
6b0741d6d234
changegroup: skip delta when the underlying revlog do not use them
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
30155
diff
changeset
|
2174 |
bundle2-input-part: total payload size 2068 |
34836
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2175 |
bundle2-input-part: total payload size 48 |
537de0b14030
phase: use a binary phase part to push through bundle2 (BC)
Boris Feld <boris.feld@octobus.net>
parents:
34821
diff
changeset
|
2176 |
bundle2-input-bundle: 4 parts total |
16956
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2177 |
transaction abort! |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2178 |
rollback completed |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2179 |
abort: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374") |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2180 |
no rollback information available |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2181 |
2:fb35475503ef |
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2182 |
|
c49cf339b5bb
acl: use of "!" prefix in user or group names
Elifarley Callado Coelho Cruz
parents:
16945
diff
changeset
|
2183 |