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