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