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