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