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