Show More
@@ -0,0 +1,17 | |||||
|
1 | from __future__ import absolute_import | |||
|
2 | ||||
|
3 | import base64 | |||
|
4 | ||||
|
5 | from mercurial.hgweb import common | |||
|
6 | ||||
|
7 | def perform_authentication(hgweb, req, op): | |||
|
8 | auth = req.headers.get(b'Authorization') | |||
|
9 | if not auth: | |||
|
10 | raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, b'who', | |||
|
11 | [(b'WWW-Authenticate', b'Basic Realm="mercurial"')]) | |||
|
12 | ||||
|
13 | if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user', b'pass']: | |||
|
14 | raise common.ErrorResponse(common.HTTP_FORBIDDEN, b'no') | |||
|
15 | ||||
|
16 | def extsetup(ui): | |||
|
17 | common.permhooks.insert(0, perform_authentication) |
@@ -1,414 +1,401 | |||||
1 | #require serve |
|
1 | #require serve | |
2 |
|
2 | |||
3 | This test is a duplicate of 'test-http.t', feel free to factor out |
|
3 | This test is a duplicate of 'test-http.t', feel free to factor out | |
4 | parts that are not bundle1/bundle2 specific. |
|
4 | parts that are not bundle1/bundle2 specific. | |
5 |
|
5 | |||
6 | $ cat << EOF >> $HGRCPATH |
|
6 | $ cat << EOF >> $HGRCPATH | |
7 | > [devel] |
|
7 | > [devel] | |
8 | > # This test is dedicated to interaction through old bundle |
|
8 | > # This test is dedicated to interaction through old bundle | |
9 | > legacy.exchange = bundle1 |
|
9 | > legacy.exchange = bundle1 | |
10 | > EOF |
|
10 | > EOF | |
11 |
|
11 | |||
12 | $ hg init test |
|
12 | $ hg init test | |
13 | $ cd test |
|
13 | $ cd test | |
14 | $ echo foo>foo |
|
14 | $ echo foo>foo | |
15 | $ mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg |
|
15 | $ mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg | |
16 | $ echo foo>foo.d/foo |
|
16 | $ echo foo>foo.d/foo | |
17 | $ echo bar>foo.d/bAr.hg.d/BaR |
|
17 | $ echo bar>foo.d/bAr.hg.d/BaR | |
18 | $ echo bar>foo.d/baR.d.hg/bAR |
|
18 | $ echo bar>foo.d/baR.d.hg/bAR | |
19 | $ hg commit -A -m 1 |
|
19 | $ hg commit -A -m 1 | |
20 | adding foo |
|
20 | adding foo | |
21 | adding foo.d/bAr.hg.d/BaR |
|
21 | adding foo.d/bAr.hg.d/BaR | |
22 | adding foo.d/baR.d.hg/bAR |
|
22 | adding foo.d/baR.d.hg/bAR | |
23 | adding foo.d/foo |
|
23 | adding foo.d/foo | |
24 | $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log |
|
24 | $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log | |
25 | $ hg serve --config server.uncompressed=False -p $HGPORT1 -d --pid-file=../hg2.pid |
|
25 | $ hg serve --config server.uncompressed=False -p $HGPORT1 -d --pid-file=../hg2.pid | |
26 |
|
26 | |||
27 | Test server address cannot be reused |
|
27 | Test server address cannot be reused | |
28 |
|
28 | |||
29 | $ hg serve -p $HGPORT1 2>&1 |
|
29 | $ hg serve -p $HGPORT1 2>&1 | |
30 | abort: cannot start server at 'localhost:$HGPORT1': $EADDRINUSE$ |
|
30 | abort: cannot start server at 'localhost:$HGPORT1': $EADDRINUSE$ | |
31 | [255] |
|
31 | [255] | |
32 |
|
32 | |||
33 | $ cd .. |
|
33 | $ cd .. | |
34 | $ cat hg1.pid hg2.pid >> $DAEMON_PIDS |
|
34 | $ cat hg1.pid hg2.pid >> $DAEMON_PIDS | |
35 |
|
35 | |||
36 | clone via stream |
|
36 | clone via stream | |
37 |
|
37 | |||
38 | #if no-reposimplestore |
|
38 | #if no-reposimplestore | |
39 | $ hg clone --stream http://localhost:$HGPORT/ copy 2>&1 |
|
39 | $ hg clone --stream http://localhost:$HGPORT/ copy 2>&1 | |
40 | streaming all changes |
|
40 | streaming all changes | |
41 | 6 files to transfer, 606 bytes of data |
|
41 | 6 files to transfer, 606 bytes of data | |
42 | transferred * bytes in * seconds (*/sec) (glob) |
|
42 | transferred * bytes in * seconds (*/sec) (glob) | |
43 | searching for changes |
|
43 | searching for changes | |
44 | no changes found |
|
44 | no changes found | |
45 | updating to branch default |
|
45 | updating to branch default | |
46 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
46 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
47 | $ hg verify -R copy |
|
47 | $ hg verify -R copy | |
48 | checking changesets |
|
48 | checking changesets | |
49 | checking manifests |
|
49 | checking manifests | |
50 | crosschecking files in changesets and manifests |
|
50 | crosschecking files in changesets and manifests | |
51 | checking files |
|
51 | checking files | |
52 | checked 1 changesets with 4 changes to 4 files |
|
52 | checked 1 changesets with 4 changes to 4 files | |
53 | #endif |
|
53 | #endif | |
54 |
|
54 | |||
55 | try to clone via stream, should use pull instead |
|
55 | try to clone via stream, should use pull instead | |
56 |
|
56 | |||
57 | $ hg clone --stream http://localhost:$HGPORT1/ copy2 |
|
57 | $ hg clone --stream http://localhost:$HGPORT1/ copy2 | |
58 | warning: stream clone requested but server has them disabled |
|
58 | warning: stream clone requested but server has them disabled | |
59 | requesting all changes |
|
59 | requesting all changes | |
60 | adding changesets |
|
60 | adding changesets | |
61 | adding manifests |
|
61 | adding manifests | |
62 | adding file changes |
|
62 | adding file changes | |
63 | added 1 changesets with 4 changes to 4 files |
|
63 | added 1 changesets with 4 changes to 4 files | |
64 | new changesets 8b6053c928fe |
|
64 | new changesets 8b6053c928fe | |
65 | updating to branch default |
|
65 | updating to branch default | |
66 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
66 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
67 |
|
67 | |||
68 | try to clone via stream but missing requirements, so should use pull instead |
|
68 | try to clone via stream but missing requirements, so should use pull instead | |
69 |
|
69 | |||
70 | $ cat > $TESTTMP/removesupportedformat.py << EOF |
|
70 | $ cat > $TESTTMP/removesupportedformat.py << EOF | |
71 | > from mercurial import localrepo |
|
71 | > from mercurial import localrepo | |
72 | > def extsetup(ui): |
|
72 | > def extsetup(ui): | |
73 | > localrepo.localrepository.supportedformats.remove(b'generaldelta') |
|
73 | > localrepo.localrepository.supportedformats.remove(b'generaldelta') | |
74 | > EOF |
|
74 | > EOF | |
75 |
|
75 | |||
76 | $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3 |
|
76 | $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3 | |
77 | warning: stream clone requested but client is missing requirements: generaldelta |
|
77 | warning: stream clone requested but client is missing requirements: generaldelta | |
78 | (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information) |
|
78 | (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information) | |
79 | requesting all changes |
|
79 | requesting all changes | |
80 | adding changesets |
|
80 | adding changesets | |
81 | adding manifests |
|
81 | adding manifests | |
82 | adding file changes |
|
82 | adding file changes | |
83 | added 1 changesets with 4 changes to 4 files |
|
83 | added 1 changesets with 4 changes to 4 files | |
84 | new changesets 8b6053c928fe |
|
84 | new changesets 8b6053c928fe | |
85 | updating to branch default |
|
85 | updating to branch default | |
86 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
86 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
87 |
|
87 | |||
88 | clone via pull |
|
88 | clone via pull | |
89 |
|
89 | |||
90 | $ hg clone http://localhost:$HGPORT1/ copy-pull |
|
90 | $ hg clone http://localhost:$HGPORT1/ copy-pull | |
91 | requesting all changes |
|
91 | requesting all changes | |
92 | adding changesets |
|
92 | adding changesets | |
93 | adding manifests |
|
93 | adding manifests | |
94 | adding file changes |
|
94 | adding file changes | |
95 | added 1 changesets with 4 changes to 4 files |
|
95 | added 1 changesets with 4 changes to 4 files | |
96 | new changesets 8b6053c928fe |
|
96 | new changesets 8b6053c928fe | |
97 | updating to branch default |
|
97 | updating to branch default | |
98 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
98 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
99 | $ hg verify -R copy-pull |
|
99 | $ hg verify -R copy-pull | |
100 | checking changesets |
|
100 | checking changesets | |
101 | checking manifests |
|
101 | checking manifests | |
102 | crosschecking files in changesets and manifests |
|
102 | crosschecking files in changesets and manifests | |
103 | checking files |
|
103 | checking files | |
104 | checked 1 changesets with 4 changes to 4 files |
|
104 | checked 1 changesets with 4 changes to 4 files | |
105 | $ cd test |
|
105 | $ cd test | |
106 | $ echo bar > bar |
|
106 | $ echo bar > bar | |
107 | $ hg commit -A -d '1 0' -m 2 |
|
107 | $ hg commit -A -d '1 0' -m 2 | |
108 | adding bar |
|
108 | adding bar | |
109 | $ cd .. |
|
109 | $ cd .. | |
110 |
|
110 | |||
111 | clone over http with --update |
|
111 | clone over http with --update | |
112 |
|
112 | |||
113 | $ hg clone http://localhost:$HGPORT1/ updated --update 0 |
|
113 | $ hg clone http://localhost:$HGPORT1/ updated --update 0 | |
114 | requesting all changes |
|
114 | requesting all changes | |
115 | adding changesets |
|
115 | adding changesets | |
116 | adding manifests |
|
116 | adding manifests | |
117 | adding file changes |
|
117 | adding file changes | |
118 | added 2 changesets with 5 changes to 5 files |
|
118 | added 2 changesets with 5 changes to 5 files | |
119 | new changesets 8b6053c928fe:5fed3813f7f5 |
|
119 | new changesets 8b6053c928fe:5fed3813f7f5 | |
120 | updating to branch default |
|
120 | updating to branch default | |
121 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
121 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
122 | $ hg log -r . -R updated |
|
122 | $ hg log -r . -R updated | |
123 | changeset: 0:8b6053c928fe |
|
123 | changeset: 0:8b6053c928fe | |
124 | user: test |
|
124 | user: test | |
125 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
125 | date: Thu Jan 01 00:00:00 1970 +0000 | |
126 | summary: 1 |
|
126 | summary: 1 | |
127 |
|
127 | |||
128 | $ rm -rf updated |
|
128 | $ rm -rf updated | |
129 |
|
129 | |||
130 | incoming via HTTP |
|
130 | incoming via HTTP | |
131 |
|
131 | |||
132 | $ hg clone http://localhost:$HGPORT1/ --rev 0 partial |
|
132 | $ hg clone http://localhost:$HGPORT1/ --rev 0 partial | |
133 | adding changesets |
|
133 | adding changesets | |
134 | adding manifests |
|
134 | adding manifests | |
135 | adding file changes |
|
135 | adding file changes | |
136 | added 1 changesets with 4 changes to 4 files |
|
136 | added 1 changesets with 4 changes to 4 files | |
137 | new changesets 8b6053c928fe |
|
137 | new changesets 8b6053c928fe | |
138 | updating to branch default |
|
138 | updating to branch default | |
139 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
139 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
140 | $ cd partial |
|
140 | $ cd partial | |
141 | $ touch LOCAL |
|
141 | $ touch LOCAL | |
142 | $ hg ci -qAm LOCAL |
|
142 | $ hg ci -qAm LOCAL | |
143 | $ hg incoming http://localhost:$HGPORT1/ --template '{desc}\n' |
|
143 | $ hg incoming http://localhost:$HGPORT1/ --template '{desc}\n' | |
144 | comparing with http://localhost:$HGPORT1/ |
|
144 | comparing with http://localhost:$HGPORT1/ | |
145 | searching for changes |
|
145 | searching for changes | |
146 | 2 |
|
146 | 2 | |
147 | $ cd .. |
|
147 | $ cd .. | |
148 |
|
148 | |||
149 | pull |
|
149 | pull | |
150 |
|
150 | |||
151 | $ cd copy-pull |
|
151 | $ cd copy-pull | |
152 | $ cat >> .hg/hgrc <<EOF |
|
152 | $ cat >> .hg/hgrc <<EOF | |
153 | > [hooks] |
|
153 | > [hooks] | |
154 | > changegroup = sh -c "printenv.py changegroup" |
|
154 | > changegroup = sh -c "printenv.py changegroup" | |
155 | > EOF |
|
155 | > EOF | |
156 | $ hg pull |
|
156 | $ hg pull | |
157 | pulling from http://localhost:$HGPORT1/ |
|
157 | pulling from http://localhost:$HGPORT1/ | |
158 | searching for changes |
|
158 | searching for changes | |
159 | adding changesets |
|
159 | adding changesets | |
160 | adding manifests |
|
160 | adding manifests | |
161 | adding file changes |
|
161 | adding file changes | |
162 | added 1 changesets with 1 changes to 1 files |
|
162 | added 1 changesets with 1 changes to 1 files | |
163 | new changesets 5fed3813f7f5 |
|
163 | new changesets 5fed3813f7f5 | |
164 | changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=http://localhost:$HGPORT1/ |
|
164 | changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=http://localhost:$HGPORT1/ | |
165 | (run 'hg update' to get a working copy) |
|
165 | (run 'hg update' to get a working copy) | |
166 | $ cd .. |
|
166 | $ cd .. | |
167 |
|
167 | |||
168 | clone from invalid URL |
|
168 | clone from invalid URL | |
169 |
|
169 | |||
170 | $ hg clone http://localhost:$HGPORT/bad |
|
170 | $ hg clone http://localhost:$HGPORT/bad | |
171 | abort: HTTP Error 404: Not Found |
|
171 | abort: HTTP Error 404: Not Found | |
172 | [255] |
|
172 | [255] | |
173 |
|
173 | |||
174 | test http authentication |
|
174 | test http authentication | |
175 | + use the same server to test server side streaming preference |
|
175 | + use the same server to test server side streaming preference | |
176 |
|
176 | |||
177 | $ cd test |
|
177 | $ cd test | |
178 | $ cat << EOT > userpass.py |
|
178 | ||
179 | > import base64 |
|
179 | $ hg serve --config extensions.x=$TESTDIR/httpserverauth.py -p $HGPORT2 -d \ | |
180 | > from mercurial.hgweb import common |
|
180 | > --pid-file=pid --config server.preferuncompressed=True \ | |
181 | > def perform_authentication(hgweb, req, op): |
|
|||
182 | > auth = req.headers.get(b'Authorization') |
|
|||
183 | > if not auth: |
|
|||
184 | > raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, b'who', |
|
|||
185 | > [(b'WWW-Authenticate', b'Basic Realm="mercurial"')]) |
|
|||
186 | > if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user', |
|
|||
187 | > b'pass']: |
|
|||
188 | > raise common.ErrorResponse(common.HTTP_FORBIDDEN, b'no') |
|
|||
189 | > def extsetup(ui): |
|
|||
190 | > common.permhooks.insert(0, perform_authentication) |
|
|||
191 | > EOT |
|
|||
192 | $ hg serve --config extensions.x=userpass.py -p $HGPORT2 -d --pid-file=pid \ |
|
|||
193 | > --config server.preferuncompressed=True \ |
|
|||
194 | > --config web.push_ssl=False --config web.allow_push=* -A ../access.log |
|
181 | > --config web.push_ssl=False --config web.allow_push=* -A ../access.log | |
195 | $ cat pid >> $DAEMON_PIDS |
|
182 | $ cat pid >> $DAEMON_PIDS | |
196 |
|
183 | |||
197 | $ cat << EOF > get_pass.py |
|
184 | $ cat << EOF > get_pass.py | |
198 | > import getpass |
|
185 | > import getpass | |
199 | > def newgetpass(arg): |
|
186 | > def newgetpass(arg): | |
200 | > return "pass" |
|
187 | > return "pass" | |
201 | > getpass.getpass = newgetpass |
|
188 | > getpass.getpass = newgetpass | |
202 | > EOF |
|
189 | > EOF | |
203 |
|
190 | |||
204 | $ hg id http://localhost:$HGPORT2/ |
|
191 | $ hg id http://localhost:$HGPORT2/ | |
205 | abort: http authorization required for http://localhost:$HGPORT2/ |
|
192 | abort: http authorization required for http://localhost:$HGPORT2/ | |
206 | [255] |
|
193 | [255] | |
207 | $ hg id http://localhost:$HGPORT2/ |
|
194 | $ hg id http://localhost:$HGPORT2/ | |
208 | abort: http authorization required for http://localhost:$HGPORT2/ |
|
195 | abort: http authorization required for http://localhost:$HGPORT2/ | |
209 | [255] |
|
196 | [255] | |
210 | $ hg id --config ui.interactive=true --config extensions.getpass=get_pass.py http://user@localhost:$HGPORT2/ |
|
197 | $ hg id --config ui.interactive=true --config extensions.getpass=get_pass.py http://user@localhost:$HGPORT2/ | |
211 | http authorization required for http://localhost:$HGPORT2/ |
|
198 | http authorization required for http://localhost:$HGPORT2/ | |
212 | realm: mercurial |
|
199 | realm: mercurial | |
213 | user: user |
|
200 | user: user | |
214 | password: 5fed3813f7f5 |
|
201 | password: 5fed3813f7f5 | |
215 | $ hg id http://user:pass@localhost:$HGPORT2/ |
|
202 | $ hg id http://user:pass@localhost:$HGPORT2/ | |
216 | 5fed3813f7f5 |
|
203 | 5fed3813f7f5 | |
217 | $ echo '[auth]' >> .hg/hgrc |
|
204 | $ echo '[auth]' >> .hg/hgrc | |
218 | $ echo 'l.schemes=http' >> .hg/hgrc |
|
205 | $ echo 'l.schemes=http' >> .hg/hgrc | |
219 | $ echo 'l.prefix=lo' >> .hg/hgrc |
|
206 | $ echo 'l.prefix=lo' >> .hg/hgrc | |
220 | $ echo 'l.username=user' >> .hg/hgrc |
|
207 | $ echo 'l.username=user' >> .hg/hgrc | |
221 | $ echo 'l.password=pass' >> .hg/hgrc |
|
208 | $ echo 'l.password=pass' >> .hg/hgrc | |
222 | $ hg id http://localhost:$HGPORT2/ |
|
209 | $ hg id http://localhost:$HGPORT2/ | |
223 | 5fed3813f7f5 |
|
210 | 5fed3813f7f5 | |
224 | $ hg id http://localhost:$HGPORT2/ |
|
211 | $ hg id http://localhost:$HGPORT2/ | |
225 | 5fed3813f7f5 |
|
212 | 5fed3813f7f5 | |
226 | $ hg id http://user@localhost:$HGPORT2/ |
|
213 | $ hg id http://user@localhost:$HGPORT2/ | |
227 | 5fed3813f7f5 |
|
214 | 5fed3813f7f5 | |
228 |
|
215 | |||
229 | #if no-reposimplestore |
|
216 | #if no-reposimplestore | |
230 | $ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1 |
|
217 | $ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1 | |
231 | streaming all changes |
|
218 | streaming all changes | |
232 | 7 files to transfer, 916 bytes of data |
|
219 | 7 files to transfer, 916 bytes of data | |
233 | transferred * bytes in * seconds (*/sec) (glob) |
|
220 | transferred * bytes in * seconds (*/sec) (glob) | |
234 | searching for changes |
|
221 | searching for changes | |
235 | no changes found |
|
222 | no changes found | |
236 | updating to branch default |
|
223 | updating to branch default | |
237 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
224 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
238 | #endif |
|
225 | #endif | |
239 |
|
226 | |||
240 | --pull should override server's preferuncompressed |
|
227 | --pull should override server's preferuncompressed | |
241 |
|
228 | |||
242 | $ hg clone --pull http://user:pass@localhost:$HGPORT2/ dest-pull 2>&1 |
|
229 | $ hg clone --pull http://user:pass@localhost:$HGPORT2/ dest-pull 2>&1 | |
243 | requesting all changes |
|
230 | requesting all changes | |
244 | adding changesets |
|
231 | adding changesets | |
245 | adding manifests |
|
232 | adding manifests | |
246 | adding file changes |
|
233 | adding file changes | |
247 | added 2 changesets with 5 changes to 5 files |
|
234 | added 2 changesets with 5 changes to 5 files | |
248 | new changesets 8b6053c928fe:5fed3813f7f5 |
|
235 | new changesets 8b6053c928fe:5fed3813f7f5 | |
249 | updating to branch default |
|
236 | updating to branch default | |
250 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
237 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
251 |
|
238 | |||
252 | $ hg id http://user2@localhost:$HGPORT2/ |
|
239 | $ hg id http://user2@localhost:$HGPORT2/ | |
253 | abort: http authorization required for http://localhost:$HGPORT2/ |
|
240 | abort: http authorization required for http://localhost:$HGPORT2/ | |
254 | [255] |
|
241 | [255] | |
255 | $ hg id http://user:pass2@localhost:$HGPORT2/ |
|
242 | $ hg id http://user:pass2@localhost:$HGPORT2/ | |
256 | abort: HTTP Error 403: no |
|
243 | abort: HTTP Error 403: no | |
257 | [255] |
|
244 | [255] | |
258 |
|
245 | |||
259 | $ hg -R dest-pull tag -r tip top |
|
246 | $ hg -R dest-pull tag -r tip top | |
260 | $ hg -R dest-pull push http://user:pass@localhost:$HGPORT2/ |
|
247 | $ hg -R dest-pull push http://user:pass@localhost:$HGPORT2/ | |
261 | pushing to http://user:***@localhost:$HGPORT2/ |
|
248 | pushing to http://user:***@localhost:$HGPORT2/ | |
262 | searching for changes |
|
249 | searching for changes | |
263 | remote: adding changesets |
|
250 | remote: adding changesets | |
264 | remote: adding manifests |
|
251 | remote: adding manifests | |
265 | remote: adding file changes |
|
252 | remote: adding file changes | |
266 | remote: added 1 changesets with 1 changes to 1 files |
|
253 | remote: added 1 changesets with 1 changes to 1 files | |
267 | $ hg rollback -q |
|
254 | $ hg rollback -q | |
268 |
|
255 | |||
269 | $ sed 's/.*] "/"/' < ../access.log |
|
256 | $ sed 's/.*] "/"/' < ../access.log | |
270 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
257 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
271 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
258 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
272 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
259 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
273 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
260 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
274 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
261 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
275 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
262 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
276 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
263 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
277 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
264 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
278 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
265 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
279 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
266 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
280 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
267 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
281 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
268 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
282 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
269 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
283 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
270 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
284 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
271 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
285 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
272 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
286 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
273 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
287 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
274 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
288 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
275 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
289 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
276 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
290 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
277 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
291 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
278 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
292 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
279 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
293 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
280 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
294 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
281 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
295 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
282 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
296 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
283 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
297 | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) |
|
284 | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) | |
298 | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) |
|
285 | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) | |
299 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) |
|
286 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |
300 | "GET /?cmd=stream_out HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) |
|
287 | "GET /?cmd=stream_out HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |
301 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) |
|
288 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |
302 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) |
|
289 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |
303 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) |
|
290 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |
304 | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) |
|
291 | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) | |
305 | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) |
|
292 | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) | |
306 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) |
|
293 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |
307 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
294 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
308 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
295 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
309 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
296 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
310 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
297 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
311 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
298 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
312 | "GET /?cmd=capabilities HTTP/1.1" 403 - |
|
299 | "GET /?cmd=capabilities HTTP/1.1" 403 - | |
313 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
300 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
314 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
301 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
315 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
302 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
316 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
303 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
317 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
304 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
318 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
305 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
319 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
306 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
320 | "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=686173686564+5eb5abfefeea63c80dd7553bcc3783f37e0c5524* (glob) |
|
307 | "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=686173686564+5eb5abfefeea63c80dd7553bcc3783f37e0c5524* (glob) | |
321 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
308 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
322 |
|
309 | |||
323 | $ cd .. |
|
310 | $ cd .. | |
324 |
|
311 | |||
325 | clone of serve with repo in root and unserved subrepo (issue2970) |
|
312 | clone of serve with repo in root and unserved subrepo (issue2970) | |
326 |
|
313 | |||
327 | $ hg --cwd test init sub |
|
314 | $ hg --cwd test init sub | |
328 | $ echo empty > test/sub/empty |
|
315 | $ echo empty > test/sub/empty | |
329 | $ hg --cwd test/sub add empty |
|
316 | $ hg --cwd test/sub add empty | |
330 | $ hg --cwd test/sub commit -qm 'add empty' |
|
317 | $ hg --cwd test/sub commit -qm 'add empty' | |
331 | $ hg --cwd test/sub tag -r 0 something |
|
318 | $ hg --cwd test/sub tag -r 0 something | |
332 | $ echo sub = sub > test/.hgsub |
|
319 | $ echo sub = sub > test/.hgsub | |
333 | $ hg --cwd test add .hgsub |
|
320 | $ hg --cwd test add .hgsub | |
334 | $ hg --cwd test commit -qm 'add subrepo' |
|
321 | $ hg --cwd test commit -qm 'add subrepo' | |
335 | $ hg clone http://localhost:$HGPORT noslash-clone |
|
322 | $ hg clone http://localhost:$HGPORT noslash-clone | |
336 | requesting all changes |
|
323 | requesting all changes | |
337 | adding changesets |
|
324 | adding changesets | |
338 | adding manifests |
|
325 | adding manifests | |
339 | adding file changes |
|
326 | adding file changes | |
340 | added 3 changesets with 7 changes to 7 files |
|
327 | added 3 changesets with 7 changes to 7 files | |
341 | new changesets 8b6053c928fe:56f9bc90cce6 |
|
328 | new changesets 8b6053c928fe:56f9bc90cce6 | |
342 | updating to branch default |
|
329 | updating to branch default | |
343 | cloning subrepo sub from http://localhost:$HGPORT/sub |
|
330 | cloning subrepo sub from http://localhost:$HGPORT/sub | |
344 | abort: HTTP Error 404: Not Found |
|
331 | abort: HTTP Error 404: Not Found | |
345 | [255] |
|
332 | [255] | |
346 | $ hg clone http://localhost:$HGPORT/ slash-clone |
|
333 | $ hg clone http://localhost:$HGPORT/ slash-clone | |
347 | requesting all changes |
|
334 | requesting all changes | |
348 | adding changesets |
|
335 | adding changesets | |
349 | adding manifests |
|
336 | adding manifests | |
350 | adding file changes |
|
337 | adding file changes | |
351 | added 3 changesets with 7 changes to 7 files |
|
338 | added 3 changesets with 7 changes to 7 files | |
352 | new changesets 8b6053c928fe:56f9bc90cce6 |
|
339 | new changesets 8b6053c928fe:56f9bc90cce6 | |
353 | updating to branch default |
|
340 | updating to branch default | |
354 | cloning subrepo sub from http://localhost:$HGPORT/sub |
|
341 | cloning subrepo sub from http://localhost:$HGPORT/sub | |
355 | abort: HTTP Error 404: Not Found |
|
342 | abort: HTTP Error 404: Not Found | |
356 | [255] |
|
343 | [255] | |
357 |
|
344 | |||
358 | check error log |
|
345 | check error log | |
359 |
|
346 | |||
360 | $ cat error.log |
|
347 | $ cat error.log | |
361 |
|
348 | |||
362 | Check error reporting while pulling/cloning |
|
349 | Check error reporting while pulling/cloning | |
363 |
|
350 | |||
364 | $ $RUNTESTDIR/killdaemons.py |
|
351 | $ $RUNTESTDIR/killdaemons.py | |
365 | $ hg serve -R test -p $HGPORT -d --pid-file=hg3.pid -E error.log --config extensions.crash=${TESTDIR}/crashgetbundler.py |
|
352 | $ hg serve -R test -p $HGPORT -d --pid-file=hg3.pid -E error.log --config extensions.crash=${TESTDIR}/crashgetbundler.py | |
366 | $ cat hg3.pid >> $DAEMON_PIDS |
|
353 | $ cat hg3.pid >> $DAEMON_PIDS | |
367 | $ hg clone http://localhost:$HGPORT/ abort-clone |
|
354 | $ hg clone http://localhost:$HGPORT/ abort-clone | |
368 | requesting all changes |
|
355 | requesting all changes | |
369 | abort: remote error: |
|
356 | abort: remote error: | |
370 | this is an exercise |
|
357 | this is an exercise | |
371 | [255] |
|
358 | [255] | |
372 | $ cat error.log |
|
359 | $ cat error.log | |
373 |
|
360 | |||
374 | disable pull-based clones |
|
361 | disable pull-based clones | |
375 |
|
362 | |||
376 | $ hg serve -R test -p $HGPORT1 -d --pid-file=hg4.pid -E error.log --config server.disablefullbundle=True |
|
363 | $ hg serve -R test -p $HGPORT1 -d --pid-file=hg4.pid -E error.log --config server.disablefullbundle=True | |
377 | $ cat hg4.pid >> $DAEMON_PIDS |
|
364 | $ cat hg4.pid >> $DAEMON_PIDS | |
378 | $ hg clone http://localhost:$HGPORT1/ disable-pull-clone |
|
365 | $ hg clone http://localhost:$HGPORT1/ disable-pull-clone | |
379 | requesting all changes |
|
366 | requesting all changes | |
380 | abort: remote error: |
|
367 | abort: remote error: | |
381 | server has pull-based clones disabled |
|
368 | server has pull-based clones disabled | |
382 | [255] |
|
369 | [255] | |
383 |
|
370 | |||
384 | #if no-reposimplestore |
|
371 | #if no-reposimplestore | |
385 | ... but keep stream clones working |
|
372 | ... but keep stream clones working | |
386 |
|
373 | |||
387 | $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone |
|
374 | $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone | |
388 | streaming all changes |
|
375 | streaming all changes | |
389 | * files to transfer, * of data (glob) |
|
376 | * files to transfer, * of data (glob) | |
390 | transferred * in * seconds (* KB/sec) (glob) |
|
377 | transferred * in * seconds (* KB/sec) (glob) | |
391 | searching for changes |
|
378 | searching for changes | |
392 | no changes found |
|
379 | no changes found | |
393 | #endif |
|
380 | #endif | |
394 |
|
381 | |||
395 | ... and also keep partial clones and pulls working |
|
382 | ... and also keep partial clones and pulls working | |
396 | $ hg clone http://localhost:$HGPORT1 --rev 0 test-partial-clone |
|
383 | $ hg clone http://localhost:$HGPORT1 --rev 0 test-partial-clone | |
397 | adding changesets |
|
384 | adding changesets | |
398 | adding manifests |
|
385 | adding manifests | |
399 | adding file changes |
|
386 | adding file changes | |
400 | added 1 changesets with 4 changes to 4 files |
|
387 | added 1 changesets with 4 changes to 4 files | |
401 | new changesets 8b6053c928fe |
|
388 | new changesets 8b6053c928fe | |
402 | updating to branch default |
|
389 | updating to branch default | |
403 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
390 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
404 | $ hg pull -R test-partial-clone |
|
391 | $ hg pull -R test-partial-clone | |
405 | pulling from http://localhost:$HGPORT1/ |
|
392 | pulling from http://localhost:$HGPORT1/ | |
406 | searching for changes |
|
393 | searching for changes | |
407 | adding changesets |
|
394 | adding changesets | |
408 | adding manifests |
|
395 | adding manifests | |
409 | adding file changes |
|
396 | adding file changes | |
410 | added 2 changesets with 3 changes to 3 files |
|
397 | added 2 changesets with 3 changes to 3 files | |
411 | new changesets 5fed3813f7f5:56f9bc90cce6 |
|
398 | new changesets 5fed3813f7f5:56f9bc90cce6 | |
412 | (run 'hg update' to get a working copy) |
|
399 | (run 'hg update' to get a working copy) | |
413 |
|
400 | |||
414 | $ cat error.log |
|
401 | $ cat error.log |
@@ -1,564 +1,552 | |||||
1 | #require serve |
|
1 | #require serve | |
2 |
|
2 | |||
3 | $ hg init test |
|
3 | $ hg init test | |
4 | $ cd test |
|
4 | $ cd test | |
5 | $ echo foo>foo |
|
5 | $ echo foo>foo | |
6 | $ mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg |
|
6 | $ mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg | |
7 | $ echo foo>foo.d/foo |
|
7 | $ echo foo>foo.d/foo | |
8 | $ echo bar>foo.d/bAr.hg.d/BaR |
|
8 | $ echo bar>foo.d/bAr.hg.d/BaR | |
9 | $ echo bar>foo.d/baR.d.hg/bAR |
|
9 | $ echo bar>foo.d/baR.d.hg/bAR | |
10 | $ hg commit -A -m 1 |
|
10 | $ hg commit -A -m 1 | |
11 | adding foo |
|
11 | adding foo | |
12 | adding foo.d/bAr.hg.d/BaR |
|
12 | adding foo.d/bAr.hg.d/BaR | |
13 | adding foo.d/baR.d.hg/bAR |
|
13 | adding foo.d/baR.d.hg/bAR | |
14 | adding foo.d/foo |
|
14 | adding foo.d/foo | |
15 | $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log |
|
15 | $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log | |
16 | $ hg serve --config server.uncompressed=False -p $HGPORT1 -d --pid-file=../hg2.pid |
|
16 | $ hg serve --config server.uncompressed=False -p $HGPORT1 -d --pid-file=../hg2.pid | |
17 |
|
17 | |||
18 | Test server address cannot be reused |
|
18 | Test server address cannot be reused | |
19 |
|
19 | |||
20 | $ hg serve -p $HGPORT1 2>&1 |
|
20 | $ hg serve -p $HGPORT1 2>&1 | |
21 | abort: cannot start server at 'localhost:$HGPORT1': $EADDRINUSE$ |
|
21 | abort: cannot start server at 'localhost:$HGPORT1': $EADDRINUSE$ | |
22 | [255] |
|
22 | [255] | |
23 |
|
23 | |||
24 | $ cd .. |
|
24 | $ cd .. | |
25 | $ cat hg1.pid hg2.pid >> $DAEMON_PIDS |
|
25 | $ cat hg1.pid hg2.pid >> $DAEMON_PIDS | |
26 |
|
26 | |||
27 | clone via stream |
|
27 | clone via stream | |
28 |
|
28 | |||
29 | #if no-reposimplestore |
|
29 | #if no-reposimplestore | |
30 | $ hg clone --stream http://localhost:$HGPORT/ copy 2>&1 |
|
30 | $ hg clone --stream http://localhost:$HGPORT/ copy 2>&1 | |
31 | streaming all changes |
|
31 | streaming all changes | |
32 | 9 files to transfer, 715 bytes of data |
|
32 | 9 files to transfer, 715 bytes of data | |
33 | transferred * bytes in * seconds (*/sec) (glob) |
|
33 | transferred * bytes in * seconds (*/sec) (glob) | |
34 | updating to branch default |
|
34 | updating to branch default | |
35 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
35 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
36 | $ hg verify -R copy |
|
36 | $ hg verify -R copy | |
37 | checking changesets |
|
37 | checking changesets | |
38 | checking manifests |
|
38 | checking manifests | |
39 | crosschecking files in changesets and manifests |
|
39 | crosschecking files in changesets and manifests | |
40 | checking files |
|
40 | checking files | |
41 | checked 1 changesets with 4 changes to 4 files |
|
41 | checked 1 changesets with 4 changes to 4 files | |
42 | #endif |
|
42 | #endif | |
43 |
|
43 | |||
44 | try to clone via stream, should use pull instead |
|
44 | try to clone via stream, should use pull instead | |
45 |
|
45 | |||
46 | $ hg clone --stream http://localhost:$HGPORT1/ copy2 |
|
46 | $ hg clone --stream http://localhost:$HGPORT1/ copy2 | |
47 | warning: stream clone requested but server has them disabled |
|
47 | warning: stream clone requested but server has them disabled | |
48 | requesting all changes |
|
48 | requesting all changes | |
49 | adding changesets |
|
49 | adding changesets | |
50 | adding manifests |
|
50 | adding manifests | |
51 | adding file changes |
|
51 | adding file changes | |
52 | added 1 changesets with 4 changes to 4 files |
|
52 | added 1 changesets with 4 changes to 4 files | |
53 | new changesets 8b6053c928fe |
|
53 | new changesets 8b6053c928fe | |
54 | updating to branch default |
|
54 | updating to branch default | |
55 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
55 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
56 |
|
56 | |||
57 | try to clone via stream but missing requirements, so should use pull instead |
|
57 | try to clone via stream but missing requirements, so should use pull instead | |
58 |
|
58 | |||
59 | $ cat > $TESTTMP/removesupportedformat.py << EOF |
|
59 | $ cat > $TESTTMP/removesupportedformat.py << EOF | |
60 | > from mercurial import localrepo |
|
60 | > from mercurial import localrepo | |
61 | > def extsetup(ui): |
|
61 | > def extsetup(ui): | |
62 | > localrepo.localrepository.supportedformats.remove(b'generaldelta') |
|
62 | > localrepo.localrepository.supportedformats.remove(b'generaldelta') | |
63 | > EOF |
|
63 | > EOF | |
64 |
|
64 | |||
65 | $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3 |
|
65 | $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3 | |
66 | warning: stream clone requested but client is missing requirements: generaldelta |
|
66 | warning: stream clone requested but client is missing requirements: generaldelta | |
67 | (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information) |
|
67 | (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information) | |
68 | requesting all changes |
|
68 | requesting all changes | |
69 | adding changesets |
|
69 | adding changesets | |
70 | adding manifests |
|
70 | adding manifests | |
71 | adding file changes |
|
71 | adding file changes | |
72 | added 1 changesets with 4 changes to 4 files |
|
72 | added 1 changesets with 4 changes to 4 files | |
73 | new changesets 8b6053c928fe |
|
73 | new changesets 8b6053c928fe | |
74 | updating to branch default |
|
74 | updating to branch default | |
75 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
75 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
76 |
|
76 | |||
77 | clone via pull |
|
77 | clone via pull | |
78 |
|
78 | |||
79 | $ hg clone http://localhost:$HGPORT1/ copy-pull |
|
79 | $ hg clone http://localhost:$HGPORT1/ copy-pull | |
80 | requesting all changes |
|
80 | requesting all changes | |
81 | adding changesets |
|
81 | adding changesets | |
82 | adding manifests |
|
82 | adding manifests | |
83 | adding file changes |
|
83 | adding file changes | |
84 | added 1 changesets with 4 changes to 4 files |
|
84 | added 1 changesets with 4 changes to 4 files | |
85 | new changesets 8b6053c928fe |
|
85 | new changesets 8b6053c928fe | |
86 | updating to branch default |
|
86 | updating to branch default | |
87 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
87 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
88 | $ hg verify -R copy-pull |
|
88 | $ hg verify -R copy-pull | |
89 | checking changesets |
|
89 | checking changesets | |
90 | checking manifests |
|
90 | checking manifests | |
91 | crosschecking files in changesets and manifests |
|
91 | crosschecking files in changesets and manifests | |
92 | checking files |
|
92 | checking files | |
93 | checked 1 changesets with 4 changes to 4 files |
|
93 | checked 1 changesets with 4 changes to 4 files | |
94 | $ cd test |
|
94 | $ cd test | |
95 | $ echo bar > bar |
|
95 | $ echo bar > bar | |
96 | $ hg commit -A -d '1 0' -m 2 |
|
96 | $ hg commit -A -d '1 0' -m 2 | |
97 | adding bar |
|
97 | adding bar | |
98 | $ cd .. |
|
98 | $ cd .. | |
99 |
|
99 | |||
100 | clone over http with --update |
|
100 | clone over http with --update | |
101 |
|
101 | |||
102 | $ hg clone http://localhost:$HGPORT1/ updated --update 0 |
|
102 | $ hg clone http://localhost:$HGPORT1/ updated --update 0 | |
103 | requesting all changes |
|
103 | requesting all changes | |
104 | adding changesets |
|
104 | adding changesets | |
105 | adding manifests |
|
105 | adding manifests | |
106 | adding file changes |
|
106 | adding file changes | |
107 | added 2 changesets with 5 changes to 5 files |
|
107 | added 2 changesets with 5 changes to 5 files | |
108 | new changesets 8b6053c928fe:5fed3813f7f5 |
|
108 | new changesets 8b6053c928fe:5fed3813f7f5 | |
109 | updating to branch default |
|
109 | updating to branch default | |
110 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
110 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
111 | $ hg log -r . -R updated |
|
111 | $ hg log -r . -R updated | |
112 | changeset: 0:8b6053c928fe |
|
112 | changeset: 0:8b6053c928fe | |
113 | user: test |
|
113 | user: test | |
114 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
114 | date: Thu Jan 01 00:00:00 1970 +0000 | |
115 | summary: 1 |
|
115 | summary: 1 | |
116 |
|
116 | |||
117 | $ rm -rf updated |
|
117 | $ rm -rf updated | |
118 |
|
118 | |||
119 | incoming via HTTP |
|
119 | incoming via HTTP | |
120 |
|
120 | |||
121 | $ hg clone http://localhost:$HGPORT1/ --rev 0 partial |
|
121 | $ hg clone http://localhost:$HGPORT1/ --rev 0 partial | |
122 | adding changesets |
|
122 | adding changesets | |
123 | adding manifests |
|
123 | adding manifests | |
124 | adding file changes |
|
124 | adding file changes | |
125 | added 1 changesets with 4 changes to 4 files |
|
125 | added 1 changesets with 4 changes to 4 files | |
126 | new changesets 8b6053c928fe |
|
126 | new changesets 8b6053c928fe | |
127 | updating to branch default |
|
127 | updating to branch default | |
128 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
128 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
129 | $ cd partial |
|
129 | $ cd partial | |
130 | $ touch LOCAL |
|
130 | $ touch LOCAL | |
131 | $ hg ci -qAm LOCAL |
|
131 | $ hg ci -qAm LOCAL | |
132 | $ hg incoming http://localhost:$HGPORT1/ --template '{desc}\n' |
|
132 | $ hg incoming http://localhost:$HGPORT1/ --template '{desc}\n' | |
133 | comparing with http://localhost:$HGPORT1/ |
|
133 | comparing with http://localhost:$HGPORT1/ | |
134 | searching for changes |
|
134 | searching for changes | |
135 | 2 |
|
135 | 2 | |
136 | $ cd .. |
|
136 | $ cd .. | |
137 |
|
137 | |||
138 | pull |
|
138 | pull | |
139 |
|
139 | |||
140 | $ cd copy-pull |
|
140 | $ cd copy-pull | |
141 | $ cat >> .hg/hgrc <<EOF |
|
141 | $ cat >> .hg/hgrc <<EOF | |
142 | > [hooks] |
|
142 | > [hooks] | |
143 | > changegroup = sh -c "printenv.py --line changegroup" |
|
143 | > changegroup = sh -c "printenv.py --line changegroup" | |
144 | > EOF |
|
144 | > EOF | |
145 | $ hg pull |
|
145 | $ hg pull | |
146 | pulling from http://localhost:$HGPORT1/ |
|
146 | pulling from http://localhost:$HGPORT1/ | |
147 | searching for changes |
|
147 | searching for changes | |
148 | adding changesets |
|
148 | adding changesets | |
149 | adding manifests |
|
149 | adding manifests | |
150 | adding file changes |
|
150 | adding file changes | |
151 | added 1 changesets with 1 changes to 1 files |
|
151 | added 1 changesets with 1 changes to 1 files | |
152 | new changesets 5fed3813f7f5 |
|
152 | new changesets 5fed3813f7f5 | |
153 | changegroup hook: HG_HOOKNAME=changegroup |
|
153 | changegroup hook: HG_HOOKNAME=changegroup | |
154 | HG_HOOKTYPE=changegroup |
|
154 | HG_HOOKTYPE=changegroup | |
155 | HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d |
|
155 | HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d | |
156 | HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d |
|
156 | HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d | |
157 | HG_SOURCE=pull |
|
157 | HG_SOURCE=pull | |
158 | HG_TXNID=TXN:$ID$ |
|
158 | HG_TXNID=TXN:$ID$ | |
159 | HG_URL=http://localhost:$HGPORT1/ |
|
159 | HG_URL=http://localhost:$HGPORT1/ | |
160 |
|
160 | |||
161 | (run 'hg update' to get a working copy) |
|
161 | (run 'hg update' to get a working copy) | |
162 | $ cd .. |
|
162 | $ cd .. | |
163 |
|
163 | |||
164 | clone from invalid URL |
|
164 | clone from invalid URL | |
165 |
|
165 | |||
166 | $ hg clone http://localhost:$HGPORT/bad |
|
166 | $ hg clone http://localhost:$HGPORT/bad | |
167 | abort: HTTP Error 404: Not Found |
|
167 | abort: HTTP Error 404: Not Found | |
168 | [255] |
|
168 | [255] | |
169 |
|
169 | |||
170 | test http authentication |
|
170 | test http authentication | |
171 | + use the same server to test server side streaming preference |
|
171 | + use the same server to test server side streaming preference | |
172 |
|
172 | |||
173 | $ cd test |
|
173 | $ cd test | |
174 | $ cat << EOT > userpass.py |
|
174 | ||
175 | > import base64 |
|
175 | $ hg serve --config extensions.x=$TESTDIR/httpserverauth.py -p $HGPORT2 -d \ | |
176 | > from mercurial.hgweb import common |
|
176 | > --pid-file=pid --config server.preferuncompressed=True \ | |
177 | > def perform_authentication(hgweb, req, op): |
|
|||
178 | > auth = req.headers.get(b'Authorization') |
|
|||
179 | > if not auth: |
|
|||
180 | > raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, b'who', |
|
|||
181 | > [(b'WWW-Authenticate', b'Basic Realm="mercurial"')]) |
|
|||
182 | > if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user', b'pass']: |
|
|||
183 | > raise common.ErrorResponse(common.HTTP_FORBIDDEN, b'no') |
|
|||
184 | > def extsetup(ui): |
|
|||
185 | > common.permhooks.insert(0, perform_authentication) |
|
|||
186 | > EOT |
|
|||
187 | $ hg serve --config extensions.x=userpass.py -p $HGPORT2 -d --pid-file=pid \ |
|
|||
188 | > --config server.preferuncompressed=True \ |
|
|||
189 | > --config web.push_ssl=False --config web.allow_push=* -A ../access.log |
|
177 | > --config web.push_ssl=False --config web.allow_push=* -A ../access.log | |
190 | $ cat pid >> $DAEMON_PIDS |
|
178 | $ cat pid >> $DAEMON_PIDS | |
191 |
|
179 | |||
192 | $ cat << EOF > get_pass.py |
|
180 | $ cat << EOF > get_pass.py | |
193 | > import getpass |
|
181 | > import getpass | |
194 | > def newgetpass(arg): |
|
182 | > def newgetpass(arg): | |
195 | > return "pass" |
|
183 | > return "pass" | |
196 | > getpass.getpass = newgetpass |
|
184 | > getpass.getpass = newgetpass | |
197 | > EOF |
|
185 | > EOF | |
198 |
|
186 | |||
199 | $ hg id http://localhost:$HGPORT2/ |
|
187 | $ hg id http://localhost:$HGPORT2/ | |
200 | abort: http authorization required for http://localhost:$HGPORT2/ |
|
188 | abort: http authorization required for http://localhost:$HGPORT2/ | |
201 | [255] |
|
189 | [255] | |
202 | $ hg id http://localhost:$HGPORT2/ |
|
190 | $ hg id http://localhost:$HGPORT2/ | |
203 | abort: http authorization required for http://localhost:$HGPORT2/ |
|
191 | abort: http authorization required for http://localhost:$HGPORT2/ | |
204 | [255] |
|
192 | [255] | |
205 | $ hg id --config ui.interactive=true --config extensions.getpass=get_pass.py http://user@localhost:$HGPORT2/ |
|
193 | $ hg id --config ui.interactive=true --config extensions.getpass=get_pass.py http://user@localhost:$HGPORT2/ | |
206 | http authorization required for http://localhost:$HGPORT2/ |
|
194 | http authorization required for http://localhost:$HGPORT2/ | |
207 | realm: mercurial |
|
195 | realm: mercurial | |
208 | user: user |
|
196 | user: user | |
209 | password: 5fed3813f7f5 |
|
197 | password: 5fed3813f7f5 | |
210 | $ hg id http://user:pass@localhost:$HGPORT2/ |
|
198 | $ hg id http://user:pass@localhost:$HGPORT2/ | |
211 | 5fed3813f7f5 |
|
199 | 5fed3813f7f5 | |
212 | $ echo '[auth]' >> .hg/hgrc |
|
200 | $ echo '[auth]' >> .hg/hgrc | |
213 | $ echo 'l.schemes=http' >> .hg/hgrc |
|
201 | $ echo 'l.schemes=http' >> .hg/hgrc | |
214 | $ echo 'l.prefix=lo' >> .hg/hgrc |
|
202 | $ echo 'l.prefix=lo' >> .hg/hgrc | |
215 | $ echo 'l.username=user' >> .hg/hgrc |
|
203 | $ echo 'l.username=user' >> .hg/hgrc | |
216 | $ echo 'l.password=pass' >> .hg/hgrc |
|
204 | $ echo 'l.password=pass' >> .hg/hgrc | |
217 | $ hg id http://localhost:$HGPORT2/ |
|
205 | $ hg id http://localhost:$HGPORT2/ | |
218 | 5fed3813f7f5 |
|
206 | 5fed3813f7f5 | |
219 | $ hg id http://localhost:$HGPORT2/ |
|
207 | $ hg id http://localhost:$HGPORT2/ | |
220 | 5fed3813f7f5 |
|
208 | 5fed3813f7f5 | |
221 | $ hg id http://user@localhost:$HGPORT2/ |
|
209 | $ hg id http://user@localhost:$HGPORT2/ | |
222 | 5fed3813f7f5 |
|
210 | 5fed3813f7f5 | |
223 |
|
211 | |||
224 | #if no-reposimplestore |
|
212 | #if no-reposimplestore | |
225 | $ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1 |
|
213 | $ hg clone http://user:pass@localhost:$HGPORT2/ dest 2>&1 | |
226 | streaming all changes |
|
214 | streaming all changes | |
227 | 10 files to transfer, 1.01 KB of data |
|
215 | 10 files to transfer, 1.01 KB of data | |
228 | transferred * KB in * seconds (*/sec) (glob) |
|
216 | transferred * KB in * seconds (*/sec) (glob) | |
229 | updating to branch default |
|
217 | updating to branch default | |
230 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
218 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
231 | #endif |
|
219 | #endif | |
232 |
|
220 | |||
233 | --pull should override server's preferuncompressed |
|
221 | --pull should override server's preferuncompressed | |
234 | $ hg clone --pull http://user:pass@localhost:$HGPORT2/ dest-pull 2>&1 |
|
222 | $ hg clone --pull http://user:pass@localhost:$HGPORT2/ dest-pull 2>&1 | |
235 | requesting all changes |
|
223 | requesting all changes | |
236 | adding changesets |
|
224 | adding changesets | |
237 | adding manifests |
|
225 | adding manifests | |
238 | adding file changes |
|
226 | adding file changes | |
239 | added 2 changesets with 5 changes to 5 files |
|
227 | added 2 changesets with 5 changes to 5 files | |
240 | new changesets 8b6053c928fe:5fed3813f7f5 |
|
228 | new changesets 8b6053c928fe:5fed3813f7f5 | |
241 | updating to branch default |
|
229 | updating to branch default | |
242 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
230 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
243 |
|
231 | |||
244 | $ hg id http://user2@localhost:$HGPORT2/ |
|
232 | $ hg id http://user2@localhost:$HGPORT2/ | |
245 | abort: http authorization required for http://localhost:$HGPORT2/ |
|
233 | abort: http authorization required for http://localhost:$HGPORT2/ | |
246 | [255] |
|
234 | [255] | |
247 | $ hg id http://user:pass2@localhost:$HGPORT2/ |
|
235 | $ hg id http://user:pass2@localhost:$HGPORT2/ | |
248 | abort: HTTP Error 403: no |
|
236 | abort: HTTP Error 403: no | |
249 | [255] |
|
237 | [255] | |
250 |
|
238 | |||
251 | $ hg -R dest-pull tag -r tip top |
|
239 | $ hg -R dest-pull tag -r tip top | |
252 | $ hg -R dest-pull push http://user:pass@localhost:$HGPORT2/ |
|
240 | $ hg -R dest-pull push http://user:pass@localhost:$HGPORT2/ | |
253 | pushing to http://user:***@localhost:$HGPORT2/ |
|
241 | pushing to http://user:***@localhost:$HGPORT2/ | |
254 | searching for changes |
|
242 | searching for changes | |
255 | remote: adding changesets |
|
243 | remote: adding changesets | |
256 | remote: adding manifests |
|
244 | remote: adding manifests | |
257 | remote: adding file changes |
|
245 | remote: adding file changes | |
258 | remote: added 1 changesets with 1 changes to 1 files |
|
246 | remote: added 1 changesets with 1 changes to 1 files | |
259 | $ hg rollback -q |
|
247 | $ hg rollback -q | |
260 | $ hg -R dest-pull push http://user:pass@localhost:$HGPORT2/ --debug --config devel.debug.peer-request=yes |
|
248 | $ hg -R dest-pull push http://user:pass@localhost:$HGPORT2/ --debug --config devel.debug.peer-request=yes | |
261 | pushing to http://user:***@localhost:$HGPORT2/ |
|
249 | pushing to http://user:***@localhost:$HGPORT2/ | |
262 | using http://localhost:$HGPORT2/ |
|
250 | using http://localhost:$HGPORT2/ | |
263 | http auth: user user, password **** |
|
251 | http auth: user user, password **** | |
264 | sending capabilities command |
|
252 | sending capabilities command | |
265 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=capabilities |
|
253 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=capabilities | |
266 | http auth: user user, password **** |
|
254 | http auth: user user, password **** | |
267 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
255 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
268 | query 1; heads |
|
256 | query 1; heads | |
269 | devel-peer-request: batched-content |
|
257 | devel-peer-request: batched-content | |
270 | devel-peer-request: - heads (0 arguments) |
|
258 | devel-peer-request: - heads (0 arguments) | |
271 | devel-peer-request: - known (1 arguments) |
|
259 | devel-peer-request: - known (1 arguments) | |
272 | sending batch command |
|
260 | sending batch command | |
273 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=batch |
|
261 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=batch | |
274 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 |
|
262 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 | |
275 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
263 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
276 | devel-peer-request: 68 bytes of commands arguments in headers |
|
264 | devel-peer-request: 68 bytes of commands arguments in headers | |
277 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
265 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
278 | searching for changes |
|
266 | searching for changes | |
279 | all remote heads known locally |
|
267 | all remote heads known locally | |
280 | preparing listkeys for "phases" |
|
268 | preparing listkeys for "phases" | |
281 | sending listkeys command |
|
269 | sending listkeys command | |
282 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=listkeys |
|
270 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=listkeys | |
283 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 |
|
271 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 | |
284 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
272 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
285 | devel-peer-request: 16 bytes of commands arguments in headers |
|
273 | devel-peer-request: 16 bytes of commands arguments in headers | |
286 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
274 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
287 | received listkey for "phases": 58 bytes |
|
275 | received listkey for "phases": 58 bytes | |
288 | checking for updated bookmarks |
|
276 | checking for updated bookmarks | |
289 | preparing listkeys for "bookmarks" |
|
277 | preparing listkeys for "bookmarks" | |
290 | sending listkeys command |
|
278 | sending listkeys command | |
291 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=listkeys |
|
279 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=listkeys | |
292 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 |
|
280 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 | |
293 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
281 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
294 | devel-peer-request: 19 bytes of commands arguments in headers |
|
282 | devel-peer-request: 19 bytes of commands arguments in headers | |
295 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
283 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
296 | received listkey for "bookmarks": 0 bytes |
|
284 | received listkey for "bookmarks": 0 bytes | |
297 | sending branchmap command |
|
285 | sending branchmap command | |
298 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=branchmap |
|
286 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=branchmap | |
299 | devel-peer-request: Vary X-HgProto-1 |
|
287 | devel-peer-request: Vary X-HgProto-1 | |
300 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
288 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
301 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
289 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
302 | preparing listkeys for "bookmarks" |
|
290 | preparing listkeys for "bookmarks" | |
303 | sending listkeys command |
|
291 | sending listkeys command | |
304 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=listkeys |
|
292 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=listkeys | |
305 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 |
|
293 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 | |
306 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
294 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
307 | devel-peer-request: 19 bytes of commands arguments in headers |
|
295 | devel-peer-request: 19 bytes of commands arguments in headers | |
308 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
296 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
309 | received listkey for "bookmarks": 0 bytes |
|
297 | received listkey for "bookmarks": 0 bytes | |
310 | 1 changesets found |
|
298 | 1 changesets found | |
311 | list of changesets: |
|
299 | list of changesets: | |
312 | 7f4e523d01f2cc3765ac8934da3d14db775ff872 |
|
300 | 7f4e523d01f2cc3765ac8934da3d14db775ff872 | |
313 | bundle2-output-bundle: "HG20", 5 parts total |
|
301 | bundle2-output-bundle: "HG20", 5 parts total | |
314 | bundle2-output-part: "replycaps" 205 bytes payload |
|
302 | bundle2-output-part: "replycaps" 205 bytes payload | |
315 | bundle2-output-part: "check:phases" 24 bytes payload |
|
303 | bundle2-output-part: "check:phases" 24 bytes payload | |
316 | bundle2-output-part: "check:heads" streamed payload |
|
304 | bundle2-output-part: "check:heads" streamed payload | |
317 | bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
|
305 | bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload | |
318 | bundle2-output-part: "phase-heads" 24 bytes payload |
|
306 | bundle2-output-part: "phase-heads" 24 bytes payload | |
319 | sending unbundle command |
|
307 | sending unbundle command | |
320 | sending 1013 bytes |
|
308 | sending 1013 bytes | |
321 | devel-peer-request: POST http://localhost:$HGPORT2/?cmd=unbundle |
|
309 | devel-peer-request: POST http://localhost:$HGPORT2/?cmd=unbundle | |
322 | devel-peer-request: Content-length 1013 |
|
310 | devel-peer-request: Content-length 1013 | |
323 | devel-peer-request: Content-type application/mercurial-0.1 |
|
311 | devel-peer-request: Content-type application/mercurial-0.1 | |
324 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 |
|
312 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 | |
325 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
313 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
326 | devel-peer-request: 16 bytes of commands arguments in headers |
|
314 | devel-peer-request: 16 bytes of commands arguments in headers | |
327 | devel-peer-request: 1013 bytes of data |
|
315 | devel-peer-request: 1013 bytes of data | |
328 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
316 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
329 | bundle2-input-bundle: no-transaction |
|
317 | bundle2-input-bundle: no-transaction | |
330 | bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
|
318 | bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported | |
331 | bundle2-input-part: "output" (advisory) (params: 0 advisory) supported |
|
319 | bundle2-input-part: "output" (advisory) (params: 0 advisory) supported | |
332 | bundle2-input-part: total payload size 100 |
|
320 | bundle2-input-part: total payload size 100 | |
333 | remote: adding changesets |
|
321 | remote: adding changesets | |
334 | remote: adding manifests |
|
322 | remote: adding manifests | |
335 | remote: adding file changes |
|
323 | remote: adding file changes | |
336 | remote: added 1 changesets with 1 changes to 1 files |
|
324 | remote: added 1 changesets with 1 changes to 1 files | |
337 | bundle2-input-part: "output" (advisory) supported |
|
325 | bundle2-input-part: "output" (advisory) supported | |
338 | bundle2-input-bundle: 2 parts total |
|
326 | bundle2-input-bundle: 2 parts total | |
339 | preparing listkeys for "phases" |
|
327 | preparing listkeys for "phases" | |
340 | sending listkeys command |
|
328 | sending listkeys command | |
341 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=listkeys |
|
329 | devel-peer-request: GET http://localhost:$HGPORT2/?cmd=listkeys | |
342 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 |
|
330 | devel-peer-request: Vary X-HgArg-1,X-HgProto-1 | |
343 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
331 | devel-peer-request: X-hgproto-1 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
344 | devel-peer-request: 16 bytes of commands arguments in headers |
|
332 | devel-peer-request: 16 bytes of commands arguments in headers | |
345 | devel-peer-request: finished in *.???? seconds (200) (glob) |
|
333 | devel-peer-request: finished in *.???? seconds (200) (glob) | |
346 | received listkey for "phases": 15 bytes |
|
334 | received listkey for "phases": 15 bytes | |
347 | $ hg rollback -q |
|
335 | $ hg rollback -q | |
348 |
|
336 | |||
349 | $ sed 's/.*] "/"/' < ../access.log |
|
337 | $ sed 's/.*] "/"/' < ../access.log | |
350 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
338 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
351 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
339 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
352 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
340 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
353 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
341 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
354 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
342 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
355 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
343 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
356 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
344 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
357 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
345 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
358 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
346 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
359 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
347 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
360 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
348 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
361 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
349 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
362 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
350 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
363 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
351 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
364 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
352 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
365 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
353 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
366 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
354 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
367 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
355 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
368 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
356 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
369 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
357 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
370 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
358 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
371 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
359 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
372 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
360 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
373 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
361 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
374 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
362 | "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
375 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
363 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=namespaces x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
376 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
364 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
377 | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) |
|
365 | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) | |
378 | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) |
|
366 | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) | |
379 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) |
|
367 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |
380 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=0&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&stream=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) |
|
368 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=0&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&stream=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (no-reposimplestore !) | |
381 | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) |
|
369 | "GET /?cmd=capabilities HTTP/1.1" 401 - (no-reposimplestore !) | |
382 | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) |
|
370 | "GET /?cmd=capabilities HTTP/1.1" 200 - (no-reposimplestore !) | |
383 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
371 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
384 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
372 | "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&$USUAL_BUNDLE_CAPS$&cg=1&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
385 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
373 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
386 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
374 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
387 | "GET /?cmd=capabilities HTTP/1.1" 403 - |
|
375 | "GET /?cmd=capabilities HTTP/1.1" 403 - | |
388 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
376 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
389 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
377 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
390 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
378 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
391 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
379 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
392 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
380 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
393 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
381 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
394 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
382 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
395 | "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365* (glob) |
|
383 | "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365* (glob) | |
396 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
384 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
397 | "GET /?cmd=capabilities HTTP/1.1" 401 - |
|
385 | "GET /?cmd=capabilities HTTP/1.1" 401 - | |
398 | "GET /?cmd=capabilities HTTP/1.1" 200 - |
|
386 | "GET /?cmd=capabilities HTTP/1.1" 200 - | |
399 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
387 | "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
400 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
388 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
401 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
389 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
402 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
390 | "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
403 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
391 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
404 | "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
392 | "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
405 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull |
|
393 | "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull | |
406 |
|
394 | |||
407 | $ cd .. |
|
395 | $ cd .. | |
408 |
|
396 | |||
409 | clone of serve with repo in root and unserved subrepo (issue2970) |
|
397 | clone of serve with repo in root and unserved subrepo (issue2970) | |
410 |
|
398 | |||
411 | $ hg --cwd test init sub |
|
399 | $ hg --cwd test init sub | |
412 | $ echo empty > test/sub/empty |
|
400 | $ echo empty > test/sub/empty | |
413 | $ hg --cwd test/sub add empty |
|
401 | $ hg --cwd test/sub add empty | |
414 | $ hg --cwd test/sub commit -qm 'add empty' |
|
402 | $ hg --cwd test/sub commit -qm 'add empty' | |
415 | $ hg --cwd test/sub tag -r 0 something |
|
403 | $ hg --cwd test/sub tag -r 0 something | |
416 | $ echo sub = sub > test/.hgsub |
|
404 | $ echo sub = sub > test/.hgsub | |
417 | $ hg --cwd test add .hgsub |
|
405 | $ hg --cwd test add .hgsub | |
418 | $ hg --cwd test commit -qm 'add subrepo' |
|
406 | $ hg --cwd test commit -qm 'add subrepo' | |
419 | $ hg clone http://localhost:$HGPORT noslash-clone |
|
407 | $ hg clone http://localhost:$HGPORT noslash-clone | |
420 | requesting all changes |
|
408 | requesting all changes | |
421 | adding changesets |
|
409 | adding changesets | |
422 | adding manifests |
|
410 | adding manifests | |
423 | adding file changes |
|
411 | adding file changes | |
424 | added 3 changesets with 7 changes to 7 files |
|
412 | added 3 changesets with 7 changes to 7 files | |
425 | new changesets 8b6053c928fe:56f9bc90cce6 |
|
413 | new changesets 8b6053c928fe:56f9bc90cce6 | |
426 | updating to branch default |
|
414 | updating to branch default | |
427 | cloning subrepo sub from http://localhost:$HGPORT/sub |
|
415 | cloning subrepo sub from http://localhost:$HGPORT/sub | |
428 | abort: HTTP Error 404: Not Found |
|
416 | abort: HTTP Error 404: Not Found | |
429 | [255] |
|
417 | [255] | |
430 | $ hg clone http://localhost:$HGPORT/ slash-clone |
|
418 | $ hg clone http://localhost:$HGPORT/ slash-clone | |
431 | requesting all changes |
|
419 | requesting all changes | |
432 | adding changesets |
|
420 | adding changesets | |
433 | adding manifests |
|
421 | adding manifests | |
434 | adding file changes |
|
422 | adding file changes | |
435 | added 3 changesets with 7 changes to 7 files |
|
423 | added 3 changesets with 7 changes to 7 files | |
436 | new changesets 8b6053c928fe:56f9bc90cce6 |
|
424 | new changesets 8b6053c928fe:56f9bc90cce6 | |
437 | updating to branch default |
|
425 | updating to branch default | |
438 | cloning subrepo sub from http://localhost:$HGPORT/sub |
|
426 | cloning subrepo sub from http://localhost:$HGPORT/sub | |
439 | abort: HTTP Error 404: Not Found |
|
427 | abort: HTTP Error 404: Not Found | |
440 | [255] |
|
428 | [255] | |
441 |
|
429 | |||
442 | check error log |
|
430 | check error log | |
443 |
|
431 | |||
444 | $ cat error.log |
|
432 | $ cat error.log | |
445 |
|
433 | |||
446 | check abort error reporting while pulling/cloning |
|
434 | check abort error reporting while pulling/cloning | |
447 |
|
435 | |||
448 | $ $RUNTESTDIR/killdaemons.py |
|
436 | $ $RUNTESTDIR/killdaemons.py | |
449 | $ hg serve -R test -p $HGPORT -d --pid-file=hg3.pid -E error.log --config extensions.crash=${TESTDIR}/crashgetbundler.py |
|
437 | $ hg serve -R test -p $HGPORT -d --pid-file=hg3.pid -E error.log --config extensions.crash=${TESTDIR}/crashgetbundler.py | |
450 | $ cat hg3.pid >> $DAEMON_PIDS |
|
438 | $ cat hg3.pid >> $DAEMON_PIDS | |
451 | $ hg clone http://localhost:$HGPORT/ abort-clone |
|
439 | $ hg clone http://localhost:$HGPORT/ abort-clone | |
452 | requesting all changes |
|
440 | requesting all changes | |
453 | remote: abort: this is an exercise |
|
441 | remote: abort: this is an exercise | |
454 | abort: pull failed on remote |
|
442 | abort: pull failed on remote | |
455 | [255] |
|
443 | [255] | |
456 | $ cat error.log |
|
444 | $ cat error.log | |
457 |
|
445 | |||
458 | disable pull-based clones |
|
446 | disable pull-based clones | |
459 |
|
447 | |||
460 | $ hg serve -R test -p $HGPORT1 -d --pid-file=hg4.pid -E error.log --config server.disablefullbundle=True |
|
448 | $ hg serve -R test -p $HGPORT1 -d --pid-file=hg4.pid -E error.log --config server.disablefullbundle=True | |
461 | $ cat hg4.pid >> $DAEMON_PIDS |
|
449 | $ cat hg4.pid >> $DAEMON_PIDS | |
462 | $ hg clone http://localhost:$HGPORT1/ disable-pull-clone |
|
450 | $ hg clone http://localhost:$HGPORT1/ disable-pull-clone | |
463 | requesting all changes |
|
451 | requesting all changes | |
464 | remote: abort: server has pull-based clones disabled |
|
452 | remote: abort: server has pull-based clones disabled | |
465 | abort: pull failed on remote |
|
453 | abort: pull failed on remote | |
466 | (remove --pull if specified or upgrade Mercurial) |
|
454 | (remove --pull if specified or upgrade Mercurial) | |
467 | [255] |
|
455 | [255] | |
468 |
|
456 | |||
469 | #if no-reposimplestore |
|
457 | #if no-reposimplestore | |
470 | ... but keep stream clones working |
|
458 | ... but keep stream clones working | |
471 |
|
459 | |||
472 | $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone |
|
460 | $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone | |
473 | streaming all changes |
|
461 | streaming all changes | |
474 | * files to transfer, * of data (glob) |
|
462 | * files to transfer, * of data (glob) | |
475 | transferred * in * seconds (*/sec) (glob) |
|
463 | transferred * in * seconds (*/sec) (glob) | |
476 | $ cat error.log |
|
464 | $ cat error.log | |
477 | #endif |
|
465 | #endif | |
478 |
|
466 | |||
479 | ... and also keep partial clones and pulls working |
|
467 | ... and also keep partial clones and pulls working | |
480 | $ hg clone http://localhost:$HGPORT1 --rev 0 test/partial/clone |
|
468 | $ hg clone http://localhost:$HGPORT1 --rev 0 test/partial/clone | |
481 | adding changesets |
|
469 | adding changesets | |
482 | adding manifests |
|
470 | adding manifests | |
483 | adding file changes |
|
471 | adding file changes | |
484 | added 1 changesets with 4 changes to 4 files |
|
472 | added 1 changesets with 4 changes to 4 files | |
485 | new changesets 8b6053c928fe |
|
473 | new changesets 8b6053c928fe | |
486 | updating to branch default |
|
474 | updating to branch default | |
487 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
475 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
488 | $ hg pull -R test/partial/clone |
|
476 | $ hg pull -R test/partial/clone | |
489 | pulling from http://localhost:$HGPORT1/ |
|
477 | pulling from http://localhost:$HGPORT1/ | |
490 | searching for changes |
|
478 | searching for changes | |
491 | adding changesets |
|
479 | adding changesets | |
492 | adding manifests |
|
480 | adding manifests | |
493 | adding file changes |
|
481 | adding file changes | |
494 | added 2 changesets with 3 changes to 3 files |
|
482 | added 2 changesets with 3 changes to 3 files | |
495 | new changesets 5fed3813f7f5:56f9bc90cce6 |
|
483 | new changesets 5fed3813f7f5:56f9bc90cce6 | |
496 | (run 'hg update' to get a working copy) |
|
484 | (run 'hg update' to get a working copy) | |
497 |
|
485 | |||
498 | $ hg clone -U -r 0 test/partial/clone test/another/clone |
|
486 | $ hg clone -U -r 0 test/partial/clone test/another/clone | |
499 | adding changesets |
|
487 | adding changesets | |
500 | adding manifests |
|
488 | adding manifests | |
501 | adding file changes |
|
489 | adding file changes | |
502 | added 1 changesets with 4 changes to 4 files |
|
490 | added 1 changesets with 4 changes to 4 files | |
503 | new changesets 8b6053c928fe |
|
491 | new changesets 8b6053c928fe | |
504 |
|
492 | |||
505 | corrupt cookies file should yield a warning |
|
493 | corrupt cookies file should yield a warning | |
506 |
|
494 | |||
507 | $ cat > $TESTTMP/cookies.txt << EOF |
|
495 | $ cat > $TESTTMP/cookies.txt << EOF | |
508 | > bad format |
|
496 | > bad format | |
509 | > EOF |
|
497 | > EOF | |
510 |
|
498 | |||
511 | $ hg --config auth.cookiefile=$TESTTMP/cookies.txt id http://localhost:$HGPORT/ |
|
499 | $ hg --config auth.cookiefile=$TESTTMP/cookies.txt id http://localhost:$HGPORT/ | |
512 | (error loading cookie file $TESTTMP/cookies.txt: '*/cookies.txt' does not look like a Netscape format cookies file; continuing without cookies) (glob) |
|
500 | (error loading cookie file $TESTTMP/cookies.txt: '*/cookies.txt' does not look like a Netscape format cookies file; continuing without cookies) (glob) | |
513 | 56f9bc90cce6 |
|
501 | 56f9bc90cce6 | |
514 |
|
502 | |||
515 | $ killdaemons.py |
|
503 | $ killdaemons.py | |
516 |
|
504 | |||
517 | Create dummy authentication handler that looks for cookies. It doesn't do anything |
|
505 | Create dummy authentication handler that looks for cookies. It doesn't do anything | |
518 | useful. It just raises an HTTP 500 with details about the Cookie request header. |
|
506 | useful. It just raises an HTTP 500 with details about the Cookie request header. | |
519 | We raise HTTP 500 because its message is printed in the abort message. |
|
507 | We raise HTTP 500 because its message is printed in the abort message. | |
520 |
|
508 | |||
521 | $ cat > cookieauth.py << EOF |
|
509 | $ cat > cookieauth.py << EOF | |
522 | > from mercurial import util |
|
510 | > from mercurial import util | |
523 | > from mercurial.hgweb import common |
|
511 | > from mercurial.hgweb import common | |
524 | > def perform_authentication(hgweb, req, op): |
|
512 | > def perform_authentication(hgweb, req, op): | |
525 | > cookie = req.headers.get(b'Cookie') |
|
513 | > cookie = req.headers.get(b'Cookie') | |
526 | > if not cookie: |
|
514 | > if not cookie: | |
527 | > raise common.ErrorResponse(common.HTTP_SERVER_ERROR, b'no-cookie') |
|
515 | > raise common.ErrorResponse(common.HTTP_SERVER_ERROR, b'no-cookie') | |
528 | > raise common.ErrorResponse(common.HTTP_SERVER_ERROR, b'Cookie: %s' % cookie) |
|
516 | > raise common.ErrorResponse(common.HTTP_SERVER_ERROR, b'Cookie: %s' % cookie) | |
529 | > def extsetup(ui): |
|
517 | > def extsetup(ui): | |
530 | > common.permhooks.insert(0, perform_authentication) |
|
518 | > common.permhooks.insert(0, perform_authentication) | |
531 | > EOF |
|
519 | > EOF | |
532 |
|
520 | |||
533 | $ hg serve --config extensions.cookieauth=cookieauth.py -R test -p $HGPORT -d --pid-file=pid |
|
521 | $ hg serve --config extensions.cookieauth=cookieauth.py -R test -p $HGPORT -d --pid-file=pid | |
534 | $ cat pid > $DAEMON_PIDS |
|
522 | $ cat pid > $DAEMON_PIDS | |
535 |
|
523 | |||
536 | Request without cookie sent should fail due to lack of cookie |
|
524 | Request without cookie sent should fail due to lack of cookie | |
537 |
|
525 | |||
538 | $ hg id http://localhost:$HGPORT |
|
526 | $ hg id http://localhost:$HGPORT | |
539 | abort: HTTP Error 500: no-cookie |
|
527 | abort: HTTP Error 500: no-cookie | |
540 | [255] |
|
528 | [255] | |
541 |
|
529 | |||
542 | Populate a cookies file |
|
530 | Populate a cookies file | |
543 |
|
531 | |||
544 | $ cat > cookies.txt << EOF |
|
532 | $ cat > cookies.txt << EOF | |
545 | > # HTTP Cookie File |
|
533 | > # HTTP Cookie File | |
546 | > # Expiration is 2030-01-01 at midnight |
|
534 | > # Expiration is 2030-01-01 at midnight | |
547 | > .example.com TRUE / FALSE 1893456000 hgkey examplevalue |
|
535 | > .example.com TRUE / FALSE 1893456000 hgkey examplevalue | |
548 | > EOF |
|
536 | > EOF | |
549 |
|
537 | |||
550 | Should not send a cookie for another domain |
|
538 | Should not send a cookie for another domain | |
551 |
|
539 | |||
552 | $ hg --config auth.cookiefile=cookies.txt id http://localhost:$HGPORT/ |
|
540 | $ hg --config auth.cookiefile=cookies.txt id http://localhost:$HGPORT/ | |
553 | abort: HTTP Error 500: no-cookie |
|
541 | abort: HTTP Error 500: no-cookie | |
554 | [255] |
|
542 | [255] | |
555 |
|
543 | |||
556 | Add a cookie entry for our test server and verify it is sent |
|
544 | Add a cookie entry for our test server and verify it is sent | |
557 |
|
545 | |||
558 | $ cat >> cookies.txt << EOF |
|
546 | $ cat >> cookies.txt << EOF | |
559 | > localhost.local FALSE / FALSE 1893456000 hgkey localhostvalue |
|
547 | > localhost.local FALSE / FALSE 1893456000 hgkey localhostvalue | |
560 | > EOF |
|
548 | > EOF | |
561 |
|
549 | |||
562 | $ hg --config auth.cookiefile=cookies.txt id http://localhost:$HGPORT/ |
|
550 | $ hg --config auth.cookiefile=cookies.txt id http://localhost:$HGPORT/ | |
563 | abort: HTTP Error 500: Cookie: hgkey=localhostvalue |
|
551 | abort: HTTP Error 500: Cookie: hgkey=localhostvalue | |
564 | [255] |
|
552 | [255] |
@@ -1,464 +1,452 | |||||
1 | #testcases sshv1 sshv2 |
|
1 | #testcases sshv1 sshv2 | |
2 |
|
2 | |||
3 | #if sshv2 |
|
3 | #if sshv2 | |
4 | $ cat >> $HGRCPATH << EOF |
|
4 | $ cat >> $HGRCPATH << EOF | |
5 | > [experimental] |
|
5 | > [experimental] | |
6 | > sshpeer.advertise-v2 = true |
|
6 | > sshpeer.advertise-v2 = true | |
7 | > sshserver.support-v2 = true |
|
7 | > sshserver.support-v2 = true | |
8 | > EOF |
|
8 | > EOF | |
9 | #endif |
|
9 | #endif | |
10 |
|
10 | |||
11 | This file contains testcases that tend to be related to the wire protocol part |
|
11 | This file contains testcases that tend to be related to the wire protocol part | |
12 | of largefiles. |
|
12 | of largefiles. | |
13 |
|
13 | |||
14 | $ USERCACHE="$TESTTMP/cache"; export USERCACHE |
|
14 | $ USERCACHE="$TESTTMP/cache"; export USERCACHE | |
15 | $ mkdir "${USERCACHE}" |
|
15 | $ mkdir "${USERCACHE}" | |
16 | $ cat >> $HGRCPATH <<EOF |
|
16 | $ cat >> $HGRCPATH <<EOF | |
17 | > [extensions] |
|
17 | > [extensions] | |
18 | > largefiles= |
|
18 | > largefiles= | |
19 | > purge= |
|
19 | > purge= | |
20 | > rebase= |
|
20 | > rebase= | |
21 | > transplant= |
|
21 | > transplant= | |
22 | > [phases] |
|
22 | > [phases] | |
23 | > publish=False |
|
23 | > publish=False | |
24 | > [largefiles] |
|
24 | > [largefiles] | |
25 | > minsize=2 |
|
25 | > minsize=2 | |
26 | > patterns=glob:**.dat |
|
26 | > patterns=glob:**.dat | |
27 | > usercache=${USERCACHE} |
|
27 | > usercache=${USERCACHE} | |
28 | > [web] |
|
28 | > [web] | |
29 | > allow-archive = zip |
|
29 | > allow-archive = zip | |
30 | > [hooks] |
|
30 | > [hooks] | |
31 | > precommit=sh -c "echo \\"Invoking status precommit hook\\"; hg status" |
|
31 | > precommit=sh -c "echo \\"Invoking status precommit hook\\"; hg status" | |
32 | > EOF |
|
32 | > EOF | |
33 |
|
33 | |||
34 |
|
34 | |||
35 | #if serve |
|
35 | #if serve | |
36 | vanilla clients not locked out from largefiles servers on vanilla repos |
|
36 | vanilla clients not locked out from largefiles servers on vanilla repos | |
37 | $ mkdir r1 |
|
37 | $ mkdir r1 | |
38 | $ cd r1 |
|
38 | $ cd r1 | |
39 | $ hg init |
|
39 | $ hg init | |
40 | $ echo c1 > f1 |
|
40 | $ echo c1 > f1 | |
41 | $ hg add f1 |
|
41 | $ hg add f1 | |
42 | $ hg commit -m "m1" |
|
42 | $ hg commit -m "m1" | |
43 | Invoking status precommit hook |
|
43 | Invoking status precommit hook | |
44 | A f1 |
|
44 | A f1 | |
45 | $ cd .. |
|
45 | $ cd .. | |
46 | $ hg serve -R r1 -d -p $HGPORT --pid-file hg.pid |
|
46 | $ hg serve -R r1 -d -p $HGPORT --pid-file hg.pid | |
47 | $ cat hg.pid >> $DAEMON_PIDS |
|
47 | $ cat hg.pid >> $DAEMON_PIDS | |
48 | $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT r2 |
|
48 | $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT r2 | |
49 | requesting all changes |
|
49 | requesting all changes | |
50 | adding changesets |
|
50 | adding changesets | |
51 | adding manifests |
|
51 | adding manifests | |
52 | adding file changes |
|
52 | adding file changes | |
53 | added 1 changesets with 1 changes to 1 files |
|
53 | added 1 changesets with 1 changes to 1 files | |
54 | new changesets b6eb3a2e2efe (1 drafts) |
|
54 | new changesets b6eb3a2e2efe (1 drafts) | |
55 | updating to branch default |
|
55 | updating to branch default | |
56 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
56 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
57 |
|
57 | |||
58 | largefiles clients still work with vanilla servers |
|
58 | largefiles clients still work with vanilla servers | |
59 | $ hg serve --config extensions.largefiles=! -R r1 -d -p $HGPORT1 --pid-file hg.pid |
|
59 | $ hg serve --config extensions.largefiles=! -R r1 -d -p $HGPORT1 --pid-file hg.pid | |
60 | $ cat hg.pid >> $DAEMON_PIDS |
|
60 | $ cat hg.pid >> $DAEMON_PIDS | |
61 | $ hg clone http://localhost:$HGPORT1 r3 |
|
61 | $ hg clone http://localhost:$HGPORT1 r3 | |
62 | requesting all changes |
|
62 | requesting all changes | |
63 | adding changesets |
|
63 | adding changesets | |
64 | adding manifests |
|
64 | adding manifests | |
65 | adding file changes |
|
65 | adding file changes | |
66 | added 1 changesets with 1 changes to 1 files |
|
66 | added 1 changesets with 1 changes to 1 files | |
67 | new changesets b6eb3a2e2efe (1 drafts) |
|
67 | new changesets b6eb3a2e2efe (1 drafts) | |
68 | updating to branch default |
|
68 | updating to branch default | |
69 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
69 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
70 | #endif |
|
70 | #endif | |
71 |
|
71 | |||
72 | vanilla clients locked out from largefiles http repos |
|
72 | vanilla clients locked out from largefiles http repos | |
73 | $ mkdir r4 |
|
73 | $ mkdir r4 | |
74 | $ cd r4 |
|
74 | $ cd r4 | |
75 | $ hg init |
|
75 | $ hg init | |
76 | $ echo c1 > f1 |
|
76 | $ echo c1 > f1 | |
77 | $ hg add --large f1 |
|
77 | $ hg add --large f1 | |
78 | $ hg commit -m "m1" |
|
78 | $ hg commit -m "m1" | |
79 | Invoking status precommit hook |
|
79 | Invoking status precommit hook | |
80 | A f1 |
|
80 | A f1 | |
81 | $ cd .. |
|
81 | $ cd .. | |
82 |
|
82 | |||
83 | largefiles can be pushed locally (issue3583) |
|
83 | largefiles can be pushed locally (issue3583) | |
84 | $ hg init dest |
|
84 | $ hg init dest | |
85 | $ cd r4 |
|
85 | $ cd r4 | |
86 | $ hg outgoing ../dest |
|
86 | $ hg outgoing ../dest | |
87 | comparing with ../dest |
|
87 | comparing with ../dest | |
88 | searching for changes |
|
88 | searching for changes | |
89 | changeset: 0:639881c12b4c |
|
89 | changeset: 0:639881c12b4c | |
90 | tag: tip |
|
90 | tag: tip | |
91 | user: test |
|
91 | user: test | |
92 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
92 | date: Thu Jan 01 00:00:00 1970 +0000 | |
93 | summary: m1 |
|
93 | summary: m1 | |
94 |
|
94 | |||
95 | $ hg push ../dest |
|
95 | $ hg push ../dest | |
96 | pushing to ../dest |
|
96 | pushing to ../dest | |
97 | searching for changes |
|
97 | searching for changes | |
98 | adding changesets |
|
98 | adding changesets | |
99 | adding manifests |
|
99 | adding manifests | |
100 | adding file changes |
|
100 | adding file changes | |
101 | added 1 changesets with 1 changes to 1 files |
|
101 | added 1 changesets with 1 changes to 1 files | |
102 |
|
102 | |||
103 | exit code with nothing outgoing (issue3611) |
|
103 | exit code with nothing outgoing (issue3611) | |
104 | $ hg outgoing ../dest |
|
104 | $ hg outgoing ../dest | |
105 | comparing with ../dest |
|
105 | comparing with ../dest | |
106 | searching for changes |
|
106 | searching for changes | |
107 | no changes found |
|
107 | no changes found | |
108 | [1] |
|
108 | [1] | |
109 | $ cd .. |
|
109 | $ cd .. | |
110 |
|
110 | |||
111 | #if serve |
|
111 | #if serve | |
112 | $ hg serve -R r4 -d -p $HGPORT2 --pid-file hg.pid |
|
112 | $ hg serve -R r4 -d -p $HGPORT2 --pid-file hg.pid | |
113 | $ cat hg.pid >> $DAEMON_PIDS |
|
113 | $ cat hg.pid >> $DAEMON_PIDS | |
114 | $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT2 r5 |
|
114 | $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT2 r5 | |
115 | abort: remote error: |
|
115 | abort: remote error: | |
116 |
|
116 | |||
117 | This repository uses the largefiles extension. |
|
117 | This repository uses the largefiles extension. | |
118 |
|
118 | |||
119 | Please enable it in your Mercurial config file. |
|
119 | Please enable it in your Mercurial config file. | |
120 | [255] |
|
120 | [255] | |
121 |
|
121 | |||
122 | used all HGPORTs, kill all daemons |
|
122 | used all HGPORTs, kill all daemons | |
123 | $ killdaemons.py |
|
123 | $ killdaemons.py | |
124 | #endif |
|
124 | #endif | |
125 |
|
125 | |||
126 | vanilla clients locked out from largefiles ssh repos |
|
126 | vanilla clients locked out from largefiles ssh repos | |
127 | $ hg --config extensions.largefiles=! clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/r4 r5 |
|
127 | $ hg --config extensions.largefiles=! clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/r4 r5 | |
128 | remote: |
|
128 | remote: | |
129 | remote: This repository uses the largefiles extension. |
|
129 | remote: This repository uses the largefiles extension. | |
130 | remote: |
|
130 | remote: | |
131 | remote: Please enable it in your Mercurial config file. |
|
131 | remote: Please enable it in your Mercurial config file. | |
132 | remote: |
|
132 | remote: | |
133 | remote: - |
|
133 | remote: - | |
134 | abort: remote error |
|
134 | abort: remote error | |
135 | (check previous remote output) |
|
135 | (check previous remote output) | |
136 | [255] |
|
136 | [255] | |
137 |
|
137 | |||
138 | #if serve |
|
138 | #if serve | |
139 |
|
139 | |||
140 | largefiles clients refuse to push largefiles repos to vanilla servers |
|
140 | largefiles clients refuse to push largefiles repos to vanilla servers | |
141 | $ mkdir r6 |
|
141 | $ mkdir r6 | |
142 | $ cd r6 |
|
142 | $ cd r6 | |
143 | $ hg init |
|
143 | $ hg init | |
144 | $ echo c1 > f1 |
|
144 | $ echo c1 > f1 | |
145 | $ hg add f1 |
|
145 | $ hg add f1 | |
146 | $ hg commit -m "m1" |
|
146 | $ hg commit -m "m1" | |
147 | Invoking status precommit hook |
|
147 | Invoking status precommit hook | |
148 | A f1 |
|
148 | A f1 | |
149 | $ cat >> .hg/hgrc <<! |
|
149 | $ cat >> .hg/hgrc <<! | |
150 | > [web] |
|
150 | > [web] | |
151 | > push_ssl = false |
|
151 | > push_ssl = false | |
152 | > allow_push = * |
|
152 | > allow_push = * | |
153 | > ! |
|
153 | > ! | |
154 | $ cd .. |
|
154 | $ cd .. | |
155 | $ hg clone r6 r7 |
|
155 | $ hg clone r6 r7 | |
156 | updating to branch default |
|
156 | updating to branch default | |
157 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
157 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
158 | $ cd r7 |
|
158 | $ cd r7 | |
159 | $ echo c2 > f2 |
|
159 | $ echo c2 > f2 | |
160 | $ hg add --large f2 |
|
160 | $ hg add --large f2 | |
161 | $ hg commit -m "m2" |
|
161 | $ hg commit -m "m2" | |
162 | Invoking status precommit hook |
|
162 | Invoking status precommit hook | |
163 | A f2 |
|
163 | A f2 | |
164 | $ hg verify --large |
|
164 | $ hg verify --large | |
165 | checking changesets |
|
165 | checking changesets | |
166 | checking manifests |
|
166 | checking manifests | |
167 | crosschecking files in changesets and manifests |
|
167 | crosschecking files in changesets and manifests | |
168 | checking files |
|
168 | checking files | |
169 | checked 2 changesets with 2 changes to 2 files |
|
169 | checked 2 changesets with 2 changes to 2 files | |
170 | searching 1 changesets for largefiles |
|
170 | searching 1 changesets for largefiles | |
171 | verified existence of 1 revisions of 1 largefiles |
|
171 | verified existence of 1 revisions of 1 largefiles | |
172 | $ hg serve --config extensions.largefiles=! -R ../r6 -d -p $HGPORT --pid-file ../hg.pid |
|
172 | $ hg serve --config extensions.largefiles=! -R ../r6 -d -p $HGPORT --pid-file ../hg.pid | |
173 | $ cat ../hg.pid >> $DAEMON_PIDS |
|
173 | $ cat ../hg.pid >> $DAEMON_PIDS | |
174 | $ hg push http://localhost:$HGPORT |
|
174 | $ hg push http://localhost:$HGPORT | |
175 | pushing to http://localhost:$HGPORT/ |
|
175 | pushing to http://localhost:$HGPORT/ | |
176 | searching for changes |
|
176 | searching for changes | |
177 | abort: http://localhost:$HGPORT/ does not appear to be a largefile store |
|
177 | abort: http://localhost:$HGPORT/ does not appear to be a largefile store | |
178 | [255] |
|
178 | [255] | |
179 | $ cd .. |
|
179 | $ cd .. | |
180 |
|
180 | |||
181 | putlfile errors are shown (issue3123) |
|
181 | putlfile errors are shown (issue3123) | |
182 | Corrupt the cached largefile in r7 and move it out of the servers usercache |
|
182 | Corrupt the cached largefile in r7 and move it out of the servers usercache | |
183 | $ mv r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 . |
|
183 | $ mv r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 . | |
184 | $ echo 'client side corruption' > r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 |
|
184 | $ echo 'client side corruption' > r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 | |
185 | $ rm "$USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8" |
|
185 | $ rm "$USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8" | |
186 | $ hg init empty |
|
186 | $ hg init empty | |
187 | $ hg serve -R empty -d -p $HGPORT1 --pid-file hg.pid \ |
|
187 | $ hg serve -R empty -d -p $HGPORT1 --pid-file hg.pid \ | |
188 | > --config 'web.allow_push=*' --config web.push_ssl=False |
|
188 | > --config 'web.allow_push=*' --config web.push_ssl=False | |
189 | $ cat hg.pid >> $DAEMON_PIDS |
|
189 | $ cat hg.pid >> $DAEMON_PIDS | |
190 | $ hg push -R r7 http://localhost:$HGPORT1 |
|
190 | $ hg push -R r7 http://localhost:$HGPORT1 | |
191 | pushing to http://localhost:$HGPORT1/ |
|
191 | pushing to http://localhost:$HGPORT1/ | |
192 | searching for changes |
|
192 | searching for changes | |
193 | remote: largefiles: failed to put 4cdac4d8b084d0b599525cf732437fb337d422a8 into store: largefile contents do not match hash |
|
193 | remote: largefiles: failed to put 4cdac4d8b084d0b599525cf732437fb337d422a8 into store: largefile contents do not match hash | |
194 | abort: remotestore: could not put $TESTTMP/r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 to remote store http://localhost:$HGPORT1/ |
|
194 | abort: remotestore: could not put $TESTTMP/r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 to remote store http://localhost:$HGPORT1/ | |
195 | [255] |
|
195 | [255] | |
196 | $ mv 4cdac4d8b084d0b599525cf732437fb337d422a8 r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 |
|
196 | $ mv 4cdac4d8b084d0b599525cf732437fb337d422a8 r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 | |
197 | Push of file that exists on server but is corrupted - magic healing would be nice ... but too magic |
|
197 | Push of file that exists on server but is corrupted - magic healing would be nice ... but too magic | |
198 | $ echo "server side corruption" > empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 |
|
198 | $ echo "server side corruption" > empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 | |
199 | $ hg push -R r7 http://localhost:$HGPORT1 |
|
199 | $ hg push -R r7 http://localhost:$HGPORT1 | |
200 | pushing to http://localhost:$HGPORT1/ |
|
200 | pushing to http://localhost:$HGPORT1/ | |
201 | searching for changes |
|
201 | searching for changes | |
202 | remote: adding changesets |
|
202 | remote: adding changesets | |
203 | remote: adding manifests |
|
203 | remote: adding manifests | |
204 | remote: adding file changes |
|
204 | remote: adding file changes | |
205 | remote: added 2 changesets with 2 changes to 2 files |
|
205 | remote: added 2 changesets with 2 changes to 2 files | |
206 | $ cat empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 |
|
206 | $ cat empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 | |
207 | server side corruption |
|
207 | server side corruption | |
208 | $ rm -rf empty |
|
208 | $ rm -rf empty | |
209 |
|
209 | |||
210 | Push a largefiles repository to a served empty repository |
|
210 | Push a largefiles repository to a served empty repository | |
211 | $ hg init r8 |
|
211 | $ hg init r8 | |
212 | $ echo c3 > r8/f1 |
|
212 | $ echo c3 > r8/f1 | |
213 | $ hg add --large r8/f1 -R r8 |
|
213 | $ hg add --large r8/f1 -R r8 | |
214 | $ hg commit -m "m1" -R r8 |
|
214 | $ hg commit -m "m1" -R r8 | |
215 | Invoking status precommit hook |
|
215 | Invoking status precommit hook | |
216 | A f1 |
|
216 | A f1 | |
217 | $ hg init empty |
|
217 | $ hg init empty | |
218 | $ hg serve -R empty -d -p $HGPORT2 --pid-file hg.pid \ |
|
218 | $ hg serve -R empty -d -p $HGPORT2 --pid-file hg.pid \ | |
219 | > --config 'web.allow_push=*' --config web.push_ssl=False |
|
219 | > --config 'web.allow_push=*' --config web.push_ssl=False | |
220 | $ cat hg.pid >> $DAEMON_PIDS |
|
220 | $ cat hg.pid >> $DAEMON_PIDS | |
221 | $ rm "${USERCACHE}"/* |
|
221 | $ rm "${USERCACHE}"/* | |
222 | $ hg push -R r8 http://localhost:$HGPORT2/#default |
|
222 | $ hg push -R r8 http://localhost:$HGPORT2/#default | |
223 | pushing to http://localhost:$HGPORT2/ |
|
223 | pushing to http://localhost:$HGPORT2/ | |
224 | searching for changes |
|
224 | searching for changes | |
225 | remote: adding changesets |
|
225 | remote: adding changesets | |
226 | remote: adding manifests |
|
226 | remote: adding manifests | |
227 | remote: adding file changes |
|
227 | remote: adding file changes | |
228 | remote: added 1 changesets with 1 changes to 1 files |
|
228 | remote: added 1 changesets with 1 changes to 1 files | |
229 | $ [ -f "${USERCACHE}"/02a439e5c31c526465ab1a0ca1f431f76b827b90 ] |
|
229 | $ [ -f "${USERCACHE}"/02a439e5c31c526465ab1a0ca1f431f76b827b90 ] | |
230 | $ [ -f empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 ] |
|
230 | $ [ -f empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 ] | |
231 |
|
231 | |||
232 | Clone over http, no largefiles pulled on clone. |
|
232 | Clone over http, no largefiles pulled on clone. | |
233 |
|
233 | |||
234 | $ hg clone http://localhost:$HGPORT2/#default http-clone -U |
|
234 | $ hg clone http://localhost:$HGPORT2/#default http-clone -U | |
235 | adding changesets |
|
235 | adding changesets | |
236 | adding manifests |
|
236 | adding manifests | |
237 | adding file changes |
|
237 | adding file changes | |
238 | added 1 changesets with 1 changes to 1 files |
|
238 | added 1 changesets with 1 changes to 1 files | |
239 | new changesets cf03e5bb9936 (1 drafts) |
|
239 | new changesets cf03e5bb9936 (1 drafts) | |
240 |
|
240 | |||
241 | Archive contains largefiles |
|
241 | Archive contains largefiles | |
242 | >>> import os |
|
242 | >>> import os | |
243 | >>> from mercurial import urllibcompat |
|
243 | >>> from mercurial import urllibcompat | |
244 | >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2'] |
|
244 | >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2'] | |
245 | >>> with open('archive.zip', 'wb') as f: |
|
245 | >>> with open('archive.zip', 'wb') as f: | |
246 | ... f.write(urllibcompat.urlreq.urlopen(u).read()) and None |
|
246 | ... f.write(urllibcompat.urlreq.urlopen(u).read()) and None | |
247 | $ unzip -t archive.zip |
|
247 | $ unzip -t archive.zip | |
248 | Archive: archive.zip |
|
248 | Archive: archive.zip | |
249 | testing: empty-default/.hg_archival.txt*OK (glob) |
|
249 | testing: empty-default/.hg_archival.txt*OK (glob) | |
250 | testing: empty-default/f1*OK (glob) |
|
250 | testing: empty-default/f1*OK (glob) | |
251 | No errors detected in compressed data of archive.zip. |
|
251 | No errors detected in compressed data of archive.zip. | |
252 |
|
252 | |||
253 | test 'verify' with remotestore: |
|
253 | test 'verify' with remotestore: | |
254 |
|
254 | |||
255 | $ rm "${USERCACHE}"/02a439e5c31c526465ab1a0ca1f431f76b827b90 |
|
255 | $ rm "${USERCACHE}"/02a439e5c31c526465ab1a0ca1f431f76b827b90 | |
256 | $ mv empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 . |
|
256 | $ mv empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 . | |
257 | $ hg -R http-clone verify --large --lfa |
|
257 | $ hg -R http-clone verify --large --lfa | |
258 | checking changesets |
|
258 | checking changesets | |
259 | checking manifests |
|
259 | checking manifests | |
260 | crosschecking files in changesets and manifests |
|
260 | crosschecking files in changesets and manifests | |
261 | checking files |
|
261 | checking files | |
262 | checked 1 changesets with 1 changes to 1 files |
|
262 | checked 1 changesets with 1 changes to 1 files | |
263 | searching 1 changesets for largefiles |
|
263 | searching 1 changesets for largefiles | |
264 | changeset 0:cf03e5bb9936: f1 missing |
|
264 | changeset 0:cf03e5bb9936: f1 missing | |
265 | verified existence of 1 revisions of 1 largefiles |
|
265 | verified existence of 1 revisions of 1 largefiles | |
266 | [1] |
|
266 | [1] | |
267 | $ mv 02a439e5c31c526465ab1a0ca1f431f76b827b90 empty/.hg/largefiles/ |
|
267 | $ mv 02a439e5c31c526465ab1a0ca1f431f76b827b90 empty/.hg/largefiles/ | |
268 | $ hg -R http-clone -q verify --large --lfa |
|
268 | $ hg -R http-clone -q verify --large --lfa | |
269 |
|
269 | |||
270 | largefiles pulled on update - a largefile missing on the server: |
|
270 | largefiles pulled on update - a largefile missing on the server: | |
271 | $ mv empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 . |
|
271 | $ mv empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 . | |
272 | $ hg -R http-clone up --config largefiles.usercache=http-clone-usercache |
|
272 | $ hg -R http-clone up --config largefiles.usercache=http-clone-usercache | |
273 | getting changed largefiles |
|
273 | getting changed largefiles | |
274 | f1: largefile 02a439e5c31c526465ab1a0ca1f431f76b827b90 not available from http://localhost:$HGPORT2/ |
|
274 | f1: largefile 02a439e5c31c526465ab1a0ca1f431f76b827b90 not available from http://localhost:$HGPORT2/ | |
275 | 0 largefiles updated, 0 removed |
|
275 | 0 largefiles updated, 0 removed | |
276 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
276 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
277 | $ hg -R http-clone st |
|
277 | $ hg -R http-clone st | |
278 | ! f1 |
|
278 | ! f1 | |
279 | $ hg -R http-clone up -Cqr null |
|
279 | $ hg -R http-clone up -Cqr null | |
280 |
|
280 | |||
281 | largefiles pulled on update - a largefile corrupted on the server: |
|
281 | largefiles pulled on update - a largefile corrupted on the server: | |
282 | $ echo corruption > empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 |
|
282 | $ echo corruption > empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 | |
283 | $ hg -R http-clone up --config largefiles.usercache=http-clone-usercache |
|
283 | $ hg -R http-clone up --config largefiles.usercache=http-clone-usercache | |
284 | getting changed largefiles |
|
284 | getting changed largefiles | |
285 | f1: data corruption (expected 02a439e5c31c526465ab1a0ca1f431f76b827b90, got 6a7bb2556144babe3899b25e5428123735bb1e27) |
|
285 | f1: data corruption (expected 02a439e5c31c526465ab1a0ca1f431f76b827b90, got 6a7bb2556144babe3899b25e5428123735bb1e27) | |
286 | 0 largefiles updated, 0 removed |
|
286 | 0 largefiles updated, 0 removed | |
287 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
287 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
288 | $ hg -R http-clone st |
|
288 | $ hg -R http-clone st | |
289 | ! f1 |
|
289 | ! f1 | |
290 | $ [ ! -f http-clone/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 ] |
|
290 | $ [ ! -f http-clone/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 ] | |
291 | $ [ ! -f http-clone/f1 ] |
|
291 | $ [ ! -f http-clone/f1 ] | |
292 | $ [ ! -f http-clone-usercache ] |
|
292 | $ [ ! -f http-clone-usercache ] | |
293 | $ hg -R http-clone verify --large --lfc |
|
293 | $ hg -R http-clone verify --large --lfc | |
294 | checking changesets |
|
294 | checking changesets | |
295 | checking manifests |
|
295 | checking manifests | |
296 | crosschecking files in changesets and manifests |
|
296 | crosschecking files in changesets and manifests | |
297 | checking files |
|
297 | checking files | |
298 | checked 1 changesets with 1 changes to 1 files |
|
298 | checked 1 changesets with 1 changes to 1 files | |
299 | searching 1 changesets for largefiles |
|
299 | searching 1 changesets for largefiles | |
300 | verified contents of 1 revisions of 1 largefiles |
|
300 | verified contents of 1 revisions of 1 largefiles | |
301 | $ hg -R http-clone up -Cqr null |
|
301 | $ hg -R http-clone up -Cqr null | |
302 |
|
302 | |||
303 | largefiles pulled on update - no server side problems: |
|
303 | largefiles pulled on update - no server side problems: | |
304 | $ mv 02a439e5c31c526465ab1a0ca1f431f76b827b90 empty/.hg/largefiles/ |
|
304 | $ mv 02a439e5c31c526465ab1a0ca1f431f76b827b90 empty/.hg/largefiles/ | |
305 | $ hg -R http-clone --debug up --config largefiles.usercache=http-clone-usercache --config progress.debug=true |
|
305 | $ hg -R http-clone --debug up --config largefiles.usercache=http-clone-usercache --config progress.debug=true | |
306 | resolving manifests |
|
306 | resolving manifests | |
307 | branchmerge: False, force: False, partial: False |
|
307 | branchmerge: False, force: False, partial: False | |
308 | ancestor: 000000000000, local: 000000000000+, remote: cf03e5bb9936 |
|
308 | ancestor: 000000000000, local: 000000000000+, remote: cf03e5bb9936 | |
309 | .hglf/f1: remote created -> g |
|
309 | .hglf/f1: remote created -> g | |
310 | getting .hglf/f1 |
|
310 | getting .hglf/f1 | |
311 | updating: .hglf/f1 1/1 files (100.00%) |
|
311 | updating: .hglf/f1 1/1 files (100.00%) | |
312 | getting changed largefiles |
|
312 | getting changed largefiles | |
313 | using http://localhost:$HGPORT2/ |
|
313 | using http://localhost:$HGPORT2/ | |
314 | sending capabilities command |
|
314 | sending capabilities command | |
315 | sending statlfile command |
|
315 | sending statlfile command | |
316 | getting largefiles: 0/1 files (0.00%) |
|
316 | getting largefiles: 0/1 files (0.00%) | |
317 | getting f1:02a439e5c31c526465ab1a0ca1f431f76b827b90 |
|
317 | getting f1:02a439e5c31c526465ab1a0ca1f431f76b827b90 | |
318 | sending getlfile command |
|
318 | sending getlfile command | |
319 | found 02a439e5c31c526465ab1a0ca1f431f76b827b90 in store |
|
319 | found 02a439e5c31c526465ab1a0ca1f431f76b827b90 in store | |
320 | 1 largefiles updated, 0 removed |
|
320 | 1 largefiles updated, 0 removed | |
321 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
321 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
322 |
|
322 | |||
323 | $ ls http-clone-usercache/* |
|
323 | $ ls http-clone-usercache/* | |
324 | http-clone-usercache/02a439e5c31c526465ab1a0ca1f431f76b827b90 |
|
324 | http-clone-usercache/02a439e5c31c526465ab1a0ca1f431f76b827b90 | |
325 |
|
325 | |||
326 | $ rm -rf empty http-clone* |
|
326 | $ rm -rf empty http-clone* | |
327 |
|
327 | |||
328 | used all HGPORTs, kill all daemons |
|
328 | used all HGPORTs, kill all daemons | |
329 | $ killdaemons.py |
|
329 | $ killdaemons.py | |
330 |
|
330 | |||
331 | largefiles should batch verify remote calls |
|
331 | largefiles should batch verify remote calls | |
332 |
|
332 | |||
333 | $ hg init batchverifymain |
|
333 | $ hg init batchverifymain | |
334 | $ cd batchverifymain |
|
334 | $ cd batchverifymain | |
335 | $ echo "aaa" >> a |
|
335 | $ echo "aaa" >> a | |
336 | $ hg add --large a |
|
336 | $ hg add --large a | |
337 | $ hg commit -m "a" |
|
337 | $ hg commit -m "a" | |
338 | Invoking status precommit hook |
|
338 | Invoking status precommit hook | |
339 | A a |
|
339 | A a | |
340 | $ echo "bbb" >> b |
|
340 | $ echo "bbb" >> b | |
341 | $ hg add --large b |
|
341 | $ hg add --large b | |
342 | $ hg commit -m "b" |
|
342 | $ hg commit -m "b" | |
343 | Invoking status precommit hook |
|
343 | Invoking status precommit hook | |
344 | A b |
|
344 | A b | |
345 | $ cd .. |
|
345 | $ cd .. | |
346 | $ hg serve -R batchverifymain -d -p $HGPORT --pid-file hg.pid \ |
|
346 | $ hg serve -R batchverifymain -d -p $HGPORT --pid-file hg.pid \ | |
347 | > -A access.log |
|
347 | > -A access.log | |
348 | $ cat hg.pid >> $DAEMON_PIDS |
|
348 | $ cat hg.pid >> $DAEMON_PIDS | |
349 | $ hg clone --noupdate http://localhost:$HGPORT batchverifyclone |
|
349 | $ hg clone --noupdate http://localhost:$HGPORT batchverifyclone | |
350 | requesting all changes |
|
350 | requesting all changes | |
351 | adding changesets |
|
351 | adding changesets | |
352 | adding manifests |
|
352 | adding manifests | |
353 | adding file changes |
|
353 | adding file changes | |
354 | added 2 changesets with 2 changes to 2 files |
|
354 | added 2 changesets with 2 changes to 2 files | |
355 | new changesets 567253b0f523:04d19c27a332 (2 drafts) |
|
355 | new changesets 567253b0f523:04d19c27a332 (2 drafts) | |
356 | $ hg -R batchverifyclone verify --large --lfa |
|
356 | $ hg -R batchverifyclone verify --large --lfa | |
357 | checking changesets |
|
357 | checking changesets | |
358 | checking manifests |
|
358 | checking manifests | |
359 | crosschecking files in changesets and manifests |
|
359 | crosschecking files in changesets and manifests | |
360 | checking files |
|
360 | checking files | |
361 | checked 2 changesets with 2 changes to 2 files |
|
361 | checked 2 changesets with 2 changes to 2 files | |
362 | searching 2 changesets for largefiles |
|
362 | searching 2 changesets for largefiles | |
363 | verified existence of 2 revisions of 2 largefiles |
|
363 | verified existence of 2 revisions of 2 largefiles | |
364 | $ tail -1 access.log |
|
364 | $ tail -1 access.log | |
365 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=statlfile+sha%3D972a1a11f19934401291cc99117ec614933374ce%3Bstatlfile+sha%3Dc801c9cfe94400963fcb683246217d5db77f9a9a x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
365 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=statlfile+sha%3D972a1a11f19934401291cc99117ec614933374ce%3Bstatlfile+sha%3Dc801c9cfe94400963fcb683246217d5db77f9a9a x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
366 | $ hg -R batchverifyclone update |
|
366 | $ hg -R batchverifyclone update | |
367 | getting changed largefiles |
|
367 | getting changed largefiles | |
368 | 2 largefiles updated, 0 removed |
|
368 | 2 largefiles updated, 0 removed | |
369 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
369 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
370 |
|
370 | |||
371 | Clear log file before next test |
|
371 | Clear log file before next test | |
372 |
|
372 | |||
373 | $ printf "" > access.log |
|
373 | $ printf "" > access.log | |
374 |
|
374 | |||
375 | Verify should check file on remote server only when file is not |
|
375 | Verify should check file on remote server only when file is not | |
376 | available locally. |
|
376 | available locally. | |
377 |
|
377 | |||
378 | $ echo "ccc" >> batchverifymain/c |
|
378 | $ echo "ccc" >> batchverifymain/c | |
379 | $ hg -R batchverifymain status |
|
379 | $ hg -R batchverifymain status | |
380 | ? c |
|
380 | ? c | |
381 | $ hg -R batchverifymain add --large batchverifymain/c |
|
381 | $ hg -R batchverifymain add --large batchverifymain/c | |
382 | $ hg -R batchverifymain commit -m "c" |
|
382 | $ hg -R batchverifymain commit -m "c" | |
383 | Invoking status precommit hook |
|
383 | Invoking status precommit hook | |
384 | A c |
|
384 | A c | |
385 | $ hg -R batchverifyclone pull |
|
385 | $ hg -R batchverifyclone pull | |
386 | pulling from http://localhost:$HGPORT/ |
|
386 | pulling from http://localhost:$HGPORT/ | |
387 | searching for changes |
|
387 | searching for changes | |
388 | adding changesets |
|
388 | adding changesets | |
389 | adding manifests |
|
389 | adding manifests | |
390 | adding file changes |
|
390 | adding file changes | |
391 | added 1 changesets with 1 changes to 1 files |
|
391 | added 1 changesets with 1 changes to 1 files | |
392 | new changesets 6bba8cb6935d (1 drafts) |
|
392 | new changesets 6bba8cb6935d (1 drafts) | |
393 | (run 'hg update' to get a working copy) |
|
393 | (run 'hg update' to get a working copy) | |
394 | $ hg -R batchverifyclone verify --lfa |
|
394 | $ hg -R batchverifyclone verify --lfa | |
395 | checking changesets |
|
395 | checking changesets | |
396 | checking manifests |
|
396 | checking manifests | |
397 | crosschecking files in changesets and manifests |
|
397 | crosschecking files in changesets and manifests | |
398 | checking files |
|
398 | checking files | |
399 | checked 3 changesets with 3 changes to 3 files |
|
399 | checked 3 changesets with 3 changes to 3 files | |
400 | searching 3 changesets for largefiles |
|
400 | searching 3 changesets for largefiles | |
401 | verified existence of 3 revisions of 3 largefiles |
|
401 | verified existence of 3 revisions of 3 largefiles | |
402 | $ tail -1 access.log |
|
402 | $ tail -1 access.log | |
403 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=statlfile HTTP/1.1" 200 - x-hgarg-1:sha=c8559c3c9cfb42131794b7d8009230403b9b454c x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
403 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=statlfile HTTP/1.1" 200 - x-hgarg-1:sha=c8559c3c9cfb42131794b7d8009230403b9b454c x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
404 |
|
404 | |||
405 | $ killdaemons.py |
|
405 | $ killdaemons.py | |
406 |
|
406 | |||
407 | largefiles should not ask for password again after successful authorization |
|
407 | largefiles should not ask for password again after successful authorization | |
408 |
|
408 | |||
409 | $ hg init credentialmain |
|
409 | $ hg init credentialmain | |
410 | $ cd credentialmain |
|
410 | $ cd credentialmain | |
411 | $ echo "aaa" >> a |
|
411 | $ echo "aaa" >> a | |
412 | $ hg add --large a |
|
412 | $ hg add --large a | |
413 | $ hg commit -m "a" |
|
413 | $ hg commit -m "a" | |
414 | Invoking status precommit hook |
|
414 | Invoking status precommit hook | |
415 | A a |
|
415 | A a | |
416 |
|
416 | |||
417 | Before running server clear the user cache to force clone to download |
|
417 | Before running server clear the user cache to force clone to download | |
418 | a large file from the server rather than to get it from the cache |
|
418 | a large file from the server rather than to get it from the cache | |
419 |
|
419 | |||
420 | $ rm "${USERCACHE}"/* |
|
420 | $ rm "${USERCACHE}"/* | |
421 |
|
421 | |||
422 | $ cd .. |
|
422 | $ cd .. | |
423 | $ cat << EOT > userpass.py |
|
423 | ||
424 | > import base64 |
|
424 | $ hg serve --config extensions.x=$TESTDIR/httpserverauth.py -R credentialmain \ | |
425 | > from mercurial.hgweb import common |
|
|||
426 | > def perform_authentication(hgweb, req, op): |
|
|||
427 | > auth = req.headers.get(b'Authorization') |
|
|||
428 | > if not auth: |
|
|||
429 | > raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, b'who', |
|
|||
430 | > [(b'WWW-Authenticate', b'Basic Realm="mercurial"')]) |
|
|||
431 | > if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user', b'pass']: |
|
|||
432 | > raise common.ErrorResponse(common.HTTP_FORBIDDEN, b'no') |
|
|||
433 | > def extsetup(ui): |
|
|||
434 | > common.permhooks.insert(0, perform_authentication) |
|
|||
435 | > EOT |
|
|||
436 | $ hg serve --config extensions.x=userpass.py -R credentialmain \ |
|
|||
437 | > -d -p $HGPORT --pid-file hg.pid -A access.log |
|
425 | > -d -p $HGPORT --pid-file hg.pid -A access.log | |
438 | $ cat hg.pid >> $DAEMON_PIDS |
|
426 | $ cat hg.pid >> $DAEMON_PIDS | |
439 | $ cat << EOF > get_pass.py |
|
427 | $ cat << EOF > get_pass.py | |
440 | > import getpass |
|
428 | > import getpass | |
441 | > def newgetpass(arg): |
|
429 | > def newgetpass(arg): | |
442 | > return "pass" |
|
430 | > return "pass" | |
443 | > getpass.getpass = newgetpass |
|
431 | > getpass.getpass = newgetpass | |
444 | > EOF |
|
432 | > EOF | |
445 | $ hg clone --config ui.interactive=true --config extensions.getpass=get_pass.py \ |
|
433 | $ hg clone --config ui.interactive=true --config extensions.getpass=get_pass.py \ | |
446 | > http://user@localhost:$HGPORT credentialclone |
|
434 | > http://user@localhost:$HGPORT credentialclone | |
447 | http authorization required for http://localhost:$HGPORT/ |
|
435 | http authorization required for http://localhost:$HGPORT/ | |
448 | realm: mercurial |
|
436 | realm: mercurial | |
449 | user: user |
|
437 | user: user | |
450 | password: requesting all changes |
|
438 | password: requesting all changes | |
451 | adding changesets |
|
439 | adding changesets | |
452 | adding manifests |
|
440 | adding manifests | |
453 | adding file changes |
|
441 | adding file changes | |
454 | added 1 changesets with 1 changes to 1 files |
|
442 | added 1 changesets with 1 changes to 1 files | |
455 | new changesets 567253b0f523 (1 drafts) |
|
443 | new changesets 567253b0f523 (1 drafts) | |
456 | updating to branch default |
|
444 | updating to branch default | |
457 | getting changed largefiles |
|
445 | getting changed largefiles | |
458 | 1 largefiles updated, 0 removed |
|
446 | 1 largefiles updated, 0 removed | |
459 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
447 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
460 |
|
448 | |||
461 | $ killdaemons.py |
|
449 | $ killdaemons.py | |
462 | $ rm hg.pid access.log |
|
450 | $ rm hg.pid access.log | |
463 |
|
451 | |||
464 | #endif |
|
452 | #endif |
@@ -1,481 +1,466 | |||||
1 | #require serve no-reposimplestore no-chg |
|
1 | #require serve no-reposimplestore no-chg | |
2 |
|
2 | |||
3 | $ cat >> $HGRCPATH <<EOF |
|
3 | $ cat >> $HGRCPATH <<EOF | |
4 | > [extensions] |
|
4 | > [extensions] | |
5 | > lfs= |
|
5 | > lfs= | |
6 | > [lfs] |
|
6 | > [lfs] | |
7 | > track=all() |
|
7 | > track=all() | |
8 | > [web] |
|
8 | > [web] | |
9 | > push_ssl = False |
|
9 | > push_ssl = False | |
10 | > allow-push = * |
|
10 | > allow-push = * | |
11 | > EOF |
|
11 | > EOF | |
12 |
|
12 | |||
13 | Serving LFS files can experimentally be turned off. The long term solution is |
|
13 | Serving LFS files can experimentally be turned off. The long term solution is | |
14 | to support the 'verify' action in both client and server, so that the server can |
|
14 | to support the 'verify' action in both client and server, so that the server can | |
15 | tell the client to store files elsewhere. |
|
15 | tell the client to store files elsewhere. | |
16 |
|
16 | |||
17 | $ hg init server |
|
17 | $ hg init server | |
18 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ |
|
18 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ | |
19 | > --config experimental.lfs.serve=False -R server serve -d \ |
|
19 | > --config experimental.lfs.serve=False -R server serve -d \ | |
20 | > -p $HGPORT --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
20 | > -p $HGPORT --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
21 | $ cat hg.pid >> $DAEMON_PIDS |
|
21 | $ cat hg.pid >> $DAEMON_PIDS | |
22 |
|
22 | |||
23 | Uploads fail... |
|
23 | Uploads fail... | |
24 |
|
24 | |||
25 | $ hg init client |
|
25 | $ hg init client | |
26 | $ echo 'this-is-an-lfs-file' > client/lfs.bin |
|
26 | $ echo 'this-is-an-lfs-file' > client/lfs.bin | |
27 | $ hg -R client ci -Am 'initial commit' |
|
27 | $ hg -R client ci -Am 'initial commit' | |
28 | adding lfs.bin |
|
28 | adding lfs.bin | |
29 | $ hg -R client push http://localhost:$HGPORT |
|
29 | $ hg -R client push http://localhost:$HGPORT | |
30 | pushing to http://localhost:$HGPORT/ |
|
30 | pushing to http://localhost:$HGPORT/ | |
31 | searching for changes |
|
31 | searching for changes | |
32 | abort: LFS HTTP error: HTTP Error 400: no such method: .git! |
|
32 | abort: LFS HTTP error: HTTP Error 400: no such method: .git! | |
33 | (check that lfs serving is enabled on http://localhost:$HGPORT/.git/info/lfs and "upload" is supported) |
|
33 | (check that lfs serving is enabled on http://localhost:$HGPORT/.git/info/lfs and "upload" is supported) | |
34 | [255] |
|
34 | [255] | |
35 |
|
35 | |||
36 | ... so do a local push to make the data available. Remove the blob from the |
|
36 | ... so do a local push to make the data available. Remove the blob from the | |
37 | default cache, so it attempts to download. |
|
37 | default cache, so it attempts to download. | |
38 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ |
|
38 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ | |
39 | > --config "lfs.url=null://" \ |
|
39 | > --config "lfs.url=null://" \ | |
40 | > -R client push -q server |
|
40 | > -R client push -q server | |
41 | $ mv `hg config lfs.usercache` $TESTTMP/servercache |
|
41 | $ mv `hg config lfs.usercache` $TESTTMP/servercache | |
42 |
|
42 | |||
43 | Downloads fail... |
|
43 | Downloads fail... | |
44 |
|
44 | |||
45 | $ hg clone http://localhost:$HGPORT httpclone |
|
45 | $ hg clone http://localhost:$HGPORT httpclone | |
46 | (remote is using large file support (lfs); lfs will be enabled for this repository) |
|
46 | (remote is using large file support (lfs); lfs will be enabled for this repository) | |
47 | requesting all changes |
|
47 | requesting all changes | |
48 | adding changesets |
|
48 | adding changesets | |
49 | adding manifests |
|
49 | adding manifests | |
50 | adding file changes |
|
50 | adding file changes | |
51 | added 1 changesets with 1 changes to 1 files |
|
51 | added 1 changesets with 1 changes to 1 files | |
52 | new changesets 525251863cad |
|
52 | new changesets 525251863cad | |
53 | updating to branch default |
|
53 | updating to branch default | |
54 | abort: LFS HTTP error: HTTP Error 400: no such method: .git! |
|
54 | abort: LFS HTTP error: HTTP Error 400: no such method: .git! | |
55 | (check that lfs serving is enabled on http://localhost:$HGPORT/.git/info/lfs and "download" is supported) |
|
55 | (check that lfs serving is enabled on http://localhost:$HGPORT/.git/info/lfs and "download" is supported) | |
56 | [255] |
|
56 | [255] | |
57 |
|
57 | |||
58 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
58 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
59 |
|
59 | |||
60 | $ cat $TESTTMP/access.log $TESTTMP/errors.log |
|
60 | $ cat $TESTTMP/access.log $TESTTMP/errors.log | |
61 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
61 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
62 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D525251863cad618e55d483555f3d00a2ca99597e x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
62 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D525251863cad618e55d483555f3d00a2ca99597e x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
63 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
63 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
64 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
64 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
65 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 400 - (glob) |
|
65 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 400 - (glob) | |
66 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
66 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
67 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
67 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
68 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
68 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
69 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 400 - (glob) |
|
69 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 400 - (glob) | |
70 |
|
70 | |||
71 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log |
|
71 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log | |
72 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server serve -d \ |
|
72 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server serve -d \ | |
73 | > -p $HGPORT --pid-file=hg.pid --prefix=subdir/mount/point \ |
|
73 | > -p $HGPORT --pid-file=hg.pid --prefix=subdir/mount/point \ | |
74 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
74 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
75 | $ cat hg.pid >> $DAEMON_PIDS |
|
75 | $ cat hg.pid >> $DAEMON_PIDS | |
76 |
|
76 | |||
77 | Reasonable hint for a misconfigured blob server |
|
77 | Reasonable hint for a misconfigured blob server | |
78 |
|
78 | |||
79 | $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT/missing |
|
79 | $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT/missing | |
80 | abort: LFS HTTP error: HTTP Error 404: Not Found! |
|
80 | abort: LFS HTTP error: HTTP Error 404: Not Found! | |
81 | (the "lfs.url" config may be used to override http://localhost:$HGPORT/missing) |
|
81 | (the "lfs.url" config may be used to override http://localhost:$HGPORT/missing) | |
82 | [255] |
|
82 | [255] | |
83 |
|
83 | |||
84 | $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT2/missing |
|
84 | $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT2/missing | |
85 | abort: LFS error: *onnection *refused*! (glob) (?) |
|
85 | abort: LFS error: *onnection *refused*! (glob) (?) | |
86 | abort: LFS error: $EADDRNOTAVAIL$! (glob) (?) |
|
86 | abort: LFS error: $EADDRNOTAVAIL$! (glob) (?) | |
87 | (the "lfs.url" config may be used to override http://localhost:$HGPORT2/missing) |
|
87 | (the "lfs.url" config may be used to override http://localhost:$HGPORT2/missing) | |
88 | [255] |
|
88 | [255] | |
89 |
|
89 | |||
90 | Blob URIs are correct when --prefix is used |
|
90 | Blob URIs are correct when --prefix is used | |
91 |
|
91 | |||
92 | $ hg clone --debug http://localhost:$HGPORT/subdir/mount/point cloned2 |
|
92 | $ hg clone --debug http://localhost:$HGPORT/subdir/mount/point cloned2 | |
93 | using http://localhost:$HGPORT/subdir/mount/point |
|
93 | using http://localhost:$HGPORT/subdir/mount/point | |
94 | sending capabilities command |
|
94 | sending capabilities command | |
95 | (remote is using large file support (lfs); lfs will be enabled for this repository) |
|
95 | (remote is using large file support (lfs); lfs will be enabled for this repository) | |
96 | query 1; heads |
|
96 | query 1; heads | |
97 | sending batch command |
|
97 | sending batch command | |
98 | requesting all changes |
|
98 | requesting all changes | |
99 | sending getbundle command |
|
99 | sending getbundle command | |
100 | bundle2-input-bundle: with-transaction |
|
100 | bundle2-input-bundle: with-transaction | |
101 | bundle2-input-part: "changegroup" (params: 1 mandatory 1 advisory) supported |
|
101 | bundle2-input-part: "changegroup" (params: 1 mandatory 1 advisory) supported | |
102 | adding changesets |
|
102 | adding changesets | |
103 | add changeset 525251863cad |
|
103 | add changeset 525251863cad | |
104 | adding manifests |
|
104 | adding manifests | |
105 | adding file changes |
|
105 | adding file changes | |
106 | adding lfs.bin revisions |
|
106 | adding lfs.bin revisions | |
107 | added 1 changesets with 1 changes to 1 files |
|
107 | added 1 changesets with 1 changes to 1 files | |
108 | bundle2-input-part: total payload size 648 |
|
108 | bundle2-input-part: total payload size 648 | |
109 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
|
109 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported | |
110 | bundle2-input-part: "phase-heads" supported |
|
110 | bundle2-input-part: "phase-heads" supported | |
111 | bundle2-input-part: total payload size 24 |
|
111 | bundle2-input-part: total payload size 24 | |
112 | bundle2-input-part: "cache:rev-branch-cache" (advisory) supported |
|
112 | bundle2-input-part: "cache:rev-branch-cache" (advisory) supported | |
113 | bundle2-input-part: total payload size 39 |
|
113 | bundle2-input-part: total payload size 39 | |
114 | bundle2-input-bundle: 3 parts total |
|
114 | bundle2-input-bundle: 3 parts total | |
115 | checking for updated bookmarks |
|
115 | checking for updated bookmarks | |
116 | updating the branch cache |
|
116 | updating the branch cache | |
117 | new changesets 525251863cad |
|
117 | new changesets 525251863cad | |
118 | updating to branch default |
|
118 | updating to branch default | |
119 | resolving manifests |
|
119 | resolving manifests | |
120 | branchmerge: False, force: False, partial: False |
|
120 | branchmerge: False, force: False, partial: False | |
121 | ancestor: 000000000000, local: 000000000000+, remote: 525251863cad |
|
121 | ancestor: 000000000000, local: 000000000000+, remote: 525251863cad | |
122 | lfs: assuming remote store: http://localhost:$HGPORT/subdir/mount/point/.git/info/lfs |
|
122 | lfs: assuming remote store: http://localhost:$HGPORT/subdir/mount/point/.git/info/lfs | |
123 | Status: 200 |
|
123 | Status: 200 | |
124 | Content-Length: 371 |
|
124 | Content-Length: 371 | |
125 | Content-Type: application/vnd.git-lfs+json |
|
125 | Content-Type: application/vnd.git-lfs+json | |
126 | Date: $HTTP_DATE$ |
|
126 | Date: $HTTP_DATE$ | |
127 | Server: testing stub value |
|
127 | Server: testing stub value | |
128 | { |
|
128 | { | |
129 | "objects": [ |
|
129 | "objects": [ | |
130 | { |
|
130 | { | |
131 | "actions": { |
|
131 | "actions": { | |
132 | "download": { |
|
132 | "download": { | |
133 | "expires_at": "$ISO_8601_DATE_TIME$" |
|
133 | "expires_at": "$ISO_8601_DATE_TIME$" | |
134 | "header": { |
|
134 | "header": { | |
135 | "Accept": "application/vnd.git-lfs" |
|
135 | "Accept": "application/vnd.git-lfs" | |
136 | } |
|
136 | } | |
137 | "href": "http://localhost:$HGPORT/subdir/mount/point/.hg/lfs/objects/f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" |
|
137 | "href": "http://localhost:$HGPORT/subdir/mount/point/.hg/lfs/objects/f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" | |
138 | } |
|
138 | } | |
139 | } |
|
139 | } | |
140 | "oid": "f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" |
|
140 | "oid": "f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" | |
141 | "size": 20 |
|
141 | "size": 20 | |
142 | } |
|
142 | } | |
143 | ] |
|
143 | ] | |
144 | "transfer": "basic" |
|
144 | "transfer": "basic" | |
145 | } |
|
145 | } | |
146 | lfs: downloading f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e (20 bytes) |
|
146 | lfs: downloading f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e (20 bytes) | |
147 | Status: 200 |
|
147 | Status: 200 | |
148 | Content-Length: 20 |
|
148 | Content-Length: 20 | |
149 | Content-Type: application/octet-stream |
|
149 | Content-Type: application/octet-stream | |
150 | Date: $HTTP_DATE$ |
|
150 | Date: $HTTP_DATE$ | |
151 | Server: testing stub value |
|
151 | Server: testing stub value | |
152 | lfs: adding f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e to the usercache |
|
152 | lfs: adding f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e to the usercache | |
153 | lfs: processed: f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e |
|
153 | lfs: processed: f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e | |
154 | lfs: downloaded 1 files (20 bytes) |
|
154 | lfs: downloaded 1 files (20 bytes) | |
155 | lfs.bin: remote created -> g |
|
155 | lfs.bin: remote created -> g | |
156 | getting lfs.bin |
|
156 | getting lfs.bin | |
157 | lfs: found f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e in the local lfs store |
|
157 | lfs: found f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e in the local lfs store | |
158 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
158 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
159 | (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob) |
|
159 | (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob) | |
160 |
|
160 | |||
161 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
161 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
162 |
|
162 | |||
163 | $ cat $TESTTMP/access.log $TESTTMP/errors.log |
|
163 | $ cat $TESTTMP/access.log $TESTTMP/errors.log | |
164 | $LOCALIP - - [$LOGDATE$] "POST /missing/objects/batch HTTP/1.1" 404 - (glob) |
|
164 | $LOCALIP - - [$LOGDATE$] "POST /missing/objects/batch HTTP/1.1" 404 - (glob) | |
165 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
165 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=capabilities HTTP/1.1" 200 - (glob) | |
166 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
166 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
167 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
167 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
168 | $LOCALIP - - [$LOGDATE$] "POST /subdir/mount/point/.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
168 | $LOCALIP - - [$LOGDATE$] "POST /subdir/mount/point/.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
169 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point/.hg/lfs/objects/f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e HTTP/1.1" 200 - (glob) |
|
169 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point/.hg/lfs/objects/f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e HTTP/1.1" 200 - (glob) | |
170 |
|
170 | |||
171 | Blobs that already exist in the usercache are linked into the repo store, even |
|
171 | Blobs that already exist in the usercache are linked into the repo store, even | |
172 | though the client doesn't send the blob. |
|
172 | though the client doesn't send the blob. | |
173 |
|
173 | |||
174 | $ hg init server2 |
|
174 | $ hg init server2 | |
175 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server2 serve -d \ |
|
175 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server2 serve -d \ | |
176 | > -p $HGPORT --pid-file=hg.pid \ |
|
176 | > -p $HGPORT --pid-file=hg.pid \ | |
177 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
177 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
178 | $ cat hg.pid >> $DAEMON_PIDS |
|
178 | $ cat hg.pid >> $DAEMON_PIDS | |
179 |
|
179 | |||
180 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R cloned2 --debug \ |
|
180 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R cloned2 --debug \ | |
181 | > push http://localhost:$HGPORT | grep '^[{} ]' |
|
181 | > push http://localhost:$HGPORT | grep '^[{} ]' | |
182 | { |
|
182 | { | |
183 | "objects": [ |
|
183 | "objects": [ | |
184 | { |
|
184 | { | |
185 | "oid": "f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" |
|
185 | "oid": "f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" | |
186 | "size": 20 |
|
186 | "size": 20 | |
187 | } |
|
187 | } | |
188 | ] |
|
188 | ] | |
189 | "transfer": "basic" |
|
189 | "transfer": "basic" | |
190 | } |
|
190 | } | |
191 | $ find server2/.hg/store/lfs/objects | sort |
|
191 | $ find server2/.hg/store/lfs/objects | sort | |
192 | server2/.hg/store/lfs/objects |
|
192 | server2/.hg/store/lfs/objects | |
193 | server2/.hg/store/lfs/objects/f0 |
|
193 | server2/.hg/store/lfs/objects/f0 | |
194 | server2/.hg/store/lfs/objects/f0/3217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e |
|
194 | server2/.hg/store/lfs/objects/f0/3217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e | |
195 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
195 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
196 | $ cat $TESTTMP/errors.log |
|
196 | $ cat $TESTTMP/errors.log | |
197 |
|
197 | |||
198 | $ cat >> $TESTTMP/lfsstoreerror.py <<EOF |
|
198 | $ cat >> $TESTTMP/lfsstoreerror.py <<EOF | |
199 | > import errno |
|
199 | > import errno | |
200 | > from hgext.lfs import blobstore |
|
200 | > from hgext.lfs import blobstore | |
201 | > |
|
201 | > | |
202 | > _numverifies = 0 |
|
202 | > _numverifies = 0 | |
203 | > _readerr = True |
|
203 | > _readerr = True | |
204 | > |
|
204 | > | |
205 | > def reposetup(ui, repo): |
|
205 | > def reposetup(ui, repo): | |
206 | > # Nothing to do with a remote repo |
|
206 | > # Nothing to do with a remote repo | |
207 | > if not repo.local(): |
|
207 | > if not repo.local(): | |
208 | > return |
|
208 | > return | |
209 | > |
|
209 | > | |
210 | > store = repo.svfs.lfslocalblobstore |
|
210 | > store = repo.svfs.lfslocalblobstore | |
211 | > class badstore(store.__class__): |
|
211 | > class badstore(store.__class__): | |
212 | > def download(self, oid, src): |
|
212 | > def download(self, oid, src): | |
213 | > '''Called in the server to handle reading from the client in a |
|
213 | > '''Called in the server to handle reading from the client in a | |
214 | > PUT request.''' |
|
214 | > PUT request.''' | |
215 | > origread = src.read |
|
215 | > origread = src.read | |
216 | > def _badread(nbytes): |
|
216 | > def _badread(nbytes): | |
217 | > # Simulate bad data/checksum failure from the client |
|
217 | > # Simulate bad data/checksum failure from the client | |
218 | > return b'0' * len(origread(nbytes)) |
|
218 | > return b'0' * len(origread(nbytes)) | |
219 | > src.read = _badread |
|
219 | > src.read = _badread | |
220 | > super(badstore, self).download(oid, src) |
|
220 | > super(badstore, self).download(oid, src) | |
221 | > |
|
221 | > | |
222 | > def _read(self, vfs, oid, verify): |
|
222 | > def _read(self, vfs, oid, verify): | |
223 | > '''Called in the server to read data for a GET request, and then |
|
223 | > '''Called in the server to read data for a GET request, and then | |
224 | > calls self._verify() on it before returning.''' |
|
224 | > calls self._verify() on it before returning.''' | |
225 | > global _readerr |
|
225 | > global _readerr | |
226 | > # One time simulation of a read error |
|
226 | > # One time simulation of a read error | |
227 | > if _readerr: |
|
227 | > if _readerr: | |
228 | > _readerr = False |
|
228 | > _readerr = False | |
229 | > raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) |
|
229 | > raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) | |
230 | > # Simulate corrupt content on client download |
|
230 | > # Simulate corrupt content on client download | |
231 | > blobstore._verify(oid, b'dummy content') |
|
231 | > blobstore._verify(oid, b'dummy content') | |
232 | > |
|
232 | > | |
233 | > def verify(self, oid): |
|
233 | > def verify(self, oid): | |
234 | > '''Called in the server to populate the Batch API response, |
|
234 | > '''Called in the server to populate the Batch API response, | |
235 | > letting the client re-upload if the file is corrupt.''' |
|
235 | > letting the client re-upload if the file is corrupt.''' | |
236 | > # Fail verify in Batch API for one clone command and one push |
|
236 | > # Fail verify in Batch API for one clone command and one push | |
237 | > # command with an IOError. Then let it through to access other |
|
237 | > # command with an IOError. Then let it through to access other | |
238 | > # functions. Checksum failure is tested elsewhere. |
|
238 | > # functions. Checksum failure is tested elsewhere. | |
239 | > global _numverifies |
|
239 | > global _numverifies | |
240 | > _numverifies += 1 |
|
240 | > _numverifies += 1 | |
241 | > if _numverifies <= 2: |
|
241 | > if _numverifies <= 2: | |
242 | > raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) |
|
242 | > raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) | |
243 | > return super(badstore, self).verify(oid) |
|
243 | > return super(badstore, self).verify(oid) | |
244 | > |
|
244 | > | |
245 | > store.__class__ = badstore |
|
245 | > store.__class__ = badstore | |
246 | > EOF |
|
246 | > EOF | |
247 |
|
247 | |||
248 | $ rm -rf `hg config lfs.usercache` |
|
248 | $ rm -rf `hg config lfs.usercache` | |
249 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log |
|
249 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log | |
250 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ |
|
250 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ | |
251 | > --config extensions.lfsstoreerror=$TESTTMP/lfsstoreerror.py \ |
|
251 | > --config extensions.lfsstoreerror=$TESTTMP/lfsstoreerror.py \ | |
252 | > -R server serve -d \ |
|
252 | > -R server serve -d \ | |
253 | > -p $HGPORT1 --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
253 | > -p $HGPORT1 --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
254 | $ cat hg.pid >> $DAEMON_PIDS |
|
254 | $ cat hg.pid >> $DAEMON_PIDS | |
255 |
|
255 | |||
256 | Test an I/O error in localstore.verify() (Batch API) with GET |
|
256 | Test an I/O error in localstore.verify() (Batch API) with GET | |
257 |
|
257 | |||
258 | $ hg clone http://localhost:$HGPORT1 httpclone2 |
|
258 | $ hg clone http://localhost:$HGPORT1 httpclone2 | |
259 | (remote is using large file support (lfs); lfs will be enabled for this repository) |
|
259 | (remote is using large file support (lfs); lfs will be enabled for this repository) | |
260 | requesting all changes |
|
260 | requesting all changes | |
261 | adding changesets |
|
261 | adding changesets | |
262 | adding manifests |
|
262 | adding manifests | |
263 | adding file changes |
|
263 | adding file changes | |
264 | added 1 changesets with 1 changes to 1 files |
|
264 | added 1 changesets with 1 changes to 1 files | |
265 | new changesets 525251863cad |
|
265 | new changesets 525251863cad | |
266 | updating to branch default |
|
266 | updating to branch default | |
267 | abort: LFS server error for "lfs.bin": Internal server error! |
|
267 | abort: LFS server error for "lfs.bin": Internal server error! | |
268 | [255] |
|
268 | [255] | |
269 |
|
269 | |||
270 | Test an I/O error in localstore.verify() (Batch API) with PUT |
|
270 | Test an I/O error in localstore.verify() (Batch API) with PUT | |
271 |
|
271 | |||
272 | $ echo foo > client/lfs.bin |
|
272 | $ echo foo > client/lfs.bin | |
273 | $ hg -R client ci -m 'mod lfs' |
|
273 | $ hg -R client ci -m 'mod lfs' | |
274 | $ hg -R client push http://localhost:$HGPORT1 |
|
274 | $ hg -R client push http://localhost:$HGPORT1 | |
275 | pushing to http://localhost:$HGPORT1/ |
|
275 | pushing to http://localhost:$HGPORT1/ | |
276 | searching for changes |
|
276 | searching for changes | |
277 | abort: LFS server error for "unknown": Internal server error! |
|
277 | abort: LFS server error for "unknown": Internal server error! | |
278 | [255] |
|
278 | [255] | |
279 | TODO: figure out how to associate the file name in the error above |
|
279 | TODO: figure out how to associate the file name in the error above | |
280 |
|
280 | |||
281 | Test a bad checksum sent by the client in the transfer API |
|
281 | Test a bad checksum sent by the client in the transfer API | |
282 |
|
282 | |||
283 | $ hg -R client push http://localhost:$HGPORT1 |
|
283 | $ hg -R client push http://localhost:$HGPORT1 | |
284 | pushing to http://localhost:$HGPORT1/ |
|
284 | pushing to http://localhost:$HGPORT1/ | |
285 | searching for changes |
|
285 | searching for changes | |
286 | abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c, action=upload)! |
|
286 | abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c, action=upload)! | |
287 | [255] |
|
287 | [255] | |
288 |
|
288 | |||
289 | $ echo 'test lfs file' > server/lfs3.bin |
|
289 | $ echo 'test lfs file' > server/lfs3.bin | |
290 | $ hg --config experimental.lfs.disableusercache=True \ |
|
290 | $ hg --config experimental.lfs.disableusercache=True \ | |
291 | > -R server ci -Aqm 'another lfs file' |
|
291 | > -R server ci -Aqm 'another lfs file' | |
292 | $ hg -R client pull -q http://localhost:$HGPORT1 |
|
292 | $ hg -R client pull -q http://localhost:$HGPORT1 | |
293 |
|
293 | |||
294 | Test an I/O error during the processing of the GET request |
|
294 | Test an I/O error during the processing of the GET request | |
295 |
|
295 | |||
296 | $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \ |
|
296 | $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \ | |
297 | > -R client update -r tip |
|
297 | > -R client update -r tip | |
298 | abort: LFS HTTP error: HTTP Error 500: Internal Server Error (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)! |
|
298 | abort: LFS HTTP error: HTTP Error 500: Internal Server Error (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)! | |
299 | [255] |
|
299 | [255] | |
300 |
|
300 | |||
301 | Test a checksum failure during the processing of the GET request |
|
301 | Test a checksum failure during the processing of the GET request | |
302 |
|
302 | |||
303 | $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \ |
|
303 | $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \ | |
304 | > -R client update -r tip |
|
304 | > -R client update -r tip | |
305 | abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)! |
|
305 | abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)! | |
306 | [255] |
|
306 | [255] | |
307 |
|
307 | |||
308 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
308 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
309 |
|
309 | |||
310 | $ cat $TESTTMP/access.log |
|
310 | $ cat $TESTTMP/access.log | |
311 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
311 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
312 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
312 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
313 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
313 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
314 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
314 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
315 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
315 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
316 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
316 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
317 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
317 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
318 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
318 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
319 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
319 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
320 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
320 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
321 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
321 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
322 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
322 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
323 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
323 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
324 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
324 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
325 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
325 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
326 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
326 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
327 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
327 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
328 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
328 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
329 | $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c HTTP/1.1" 422 - (glob) |
|
329 | $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c HTTP/1.1" 422 - (glob) | |
330 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
330 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
331 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
331 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
332 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=525251863cad618e55d483555f3d00a2ca99597e&heads=506bf3d83f78c54b89e81c6411adee19fdf02156+525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
332 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=525251863cad618e55d483555f3d00a2ca99597e&heads=506bf3d83f78c54b89e81c6411adee19fdf02156+525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
333 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
333 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
334 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 500 - (glob) |
|
334 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 500 - (glob) | |
335 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
335 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
336 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 422 - (glob) |
|
336 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 422 - (glob) | |
337 |
|
337 | |||
338 | $ grep -v ' File "' $TESTTMP/errors.log |
|
338 | $ grep -v ' File "' $TESTTMP/errors.log | |
339 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.git/info/lfs/objects/batch': (glob) |
|
339 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.git/info/lfs/objects/batch': (glob) | |
340 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
|
340 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) | |
341 | $LOCALIP - - [$ERRDATE$] HG error: verifies = store.verify(oid) (glob) |
|
341 | $LOCALIP - - [$ERRDATE$] HG error: verifies = store.verify(oid) (glob) | |
342 | $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) |
|
342 | $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) | |
343 | $LOCALIP - - [$ERRDATE$] HG error: *Error: [Errno 5] f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e: I/O error (glob) |
|
343 | $LOCALIP - - [$ERRDATE$] HG error: *Error: [Errno 5] f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e: I/O error (glob) | |
344 | $LOCALIP - - [$ERRDATE$] HG error: (glob) |
|
344 | $LOCALIP - - [$ERRDATE$] HG error: (glob) | |
345 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.git/info/lfs/objects/batch': (glob) |
|
345 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.git/info/lfs/objects/batch': (glob) | |
346 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
|
346 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) | |
347 | $LOCALIP - - [$ERRDATE$] HG error: verifies = store.verify(oid) (glob) |
|
347 | $LOCALIP - - [$ERRDATE$] HG error: verifies = store.verify(oid) (glob) | |
348 | $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) |
|
348 | $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) | |
349 | $LOCALIP - - [$ERRDATE$] HG error: *Error: [Errno 5] b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c: I/O error (glob) |
|
349 | $LOCALIP - - [$ERRDATE$] HG error: *Error: [Errno 5] b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c: I/O error (glob) | |
350 | $LOCALIP - - [$ERRDATE$] HG error: (glob) |
|
350 | $LOCALIP - - [$ERRDATE$] HG error: (glob) | |
351 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c': (glob) |
|
351 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c': (glob) | |
352 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
|
352 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) | |
353 | $LOCALIP - - [$ERRDATE$] HG error: localstore.download(oid, req.bodyfh) (glob) |
|
353 | $LOCALIP - - [$ERRDATE$] HG error: localstore.download(oid, req.bodyfh) (glob) | |
354 | $LOCALIP - - [$ERRDATE$] HG error: super(badstore, self).download(oid, src) (glob) |
|
354 | $LOCALIP - - [$ERRDATE$] HG error: super(badstore, self).download(oid, src) (glob) | |
355 | $LOCALIP - - [$ERRDATE$] HG error: % oid) (glob) |
|
355 | $LOCALIP - - [$ERRDATE$] HG error: % oid) (glob) | |
356 | $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (glob) |
|
356 | $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (glob) | |
357 | $LOCALIP - - [$ERRDATE$] HG error: (glob) |
|
357 | $LOCALIP - - [$ERRDATE$] HG error: (glob) | |
358 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) |
|
358 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) | |
359 | Traceback (most recent call last): |
|
359 | Traceback (most recent call last): | |
360 | self.do_write() |
|
360 | self.do_write() | |
361 | self.do_hgweb() |
|
361 | self.do_hgweb() | |
362 | for chunk in self.server.application(env, self._start_response): |
|
362 | for chunk in self.server.application(env, self._start_response): | |
363 | for r in self._runwsgi(req, res, repo): |
|
363 | for r in self._runwsgi(req, res, repo): | |
364 | rctx, req, res, self.check_perm) |
|
364 | rctx, req, res, self.check_perm) | |
365 | return func(*(args + a), **kw) (no-py3 !) |
|
365 | return func(*(args + a), **kw) (no-py3 !) | |
366 | lambda perm: |
|
366 | lambda perm: | |
367 | res.setbodybytes(localstore.read(oid)) |
|
367 | res.setbodybytes(localstore.read(oid)) | |
368 | blob = self._read(self.vfs, oid, verify) |
|
368 | blob = self._read(self.vfs, oid, verify) | |
369 | raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) |
|
369 | raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) | |
370 | *Error: [Errno 5] 276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d: I/O error (glob) |
|
370 | *Error: [Errno 5] 276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d: I/O error (glob) | |
371 |
|
371 | |||
372 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) |
|
372 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) | |
373 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
|
373 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) | |
374 | $LOCALIP - - [$ERRDATE$] HG error: res.setbodybytes(localstore.read(oid)) (glob) |
|
374 | $LOCALIP - - [$ERRDATE$] HG error: res.setbodybytes(localstore.read(oid)) (glob) | |
375 | $LOCALIP - - [$ERRDATE$] HG error: blob = self._read(self.vfs, oid, verify) (glob) |
|
375 | $LOCALIP - - [$ERRDATE$] HG error: blob = self._read(self.vfs, oid, verify) (glob) | |
376 | $LOCALIP - - [$ERRDATE$] HG error: blobstore._verify(oid, b'dummy content') (glob) |
|
376 | $LOCALIP - - [$ERRDATE$] HG error: blobstore._verify(oid, b'dummy content') (glob) | |
377 | $LOCALIP - - [$ERRDATE$] HG error: hint=_(b'run hg verify')) (glob) |
|
377 | $LOCALIP - - [$ERRDATE$] HG error: hint=_(b'run hg verify')) (glob) | |
378 | $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: detected corrupt lfs object: 276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d (glob) |
|
378 | $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: detected corrupt lfs object: 276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d (glob) | |
379 | $LOCALIP - - [$ERRDATE$] HG error: (glob) |
|
379 | $LOCALIP - - [$ERRDATE$] HG error: (glob) | |
380 |
|
380 | |||
381 | Basic Authorization headers are returned by the Batch API, and sent back with |
|
381 | Basic Authorization headers are returned by the Batch API, and sent back with | |
382 | the GET/PUT request. |
|
382 | the GET/PUT request. | |
383 |
|
383 | |||
384 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log |
|
384 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log | |
385 |
|
385 | |||
386 | $ cat >> $HGRCPATH << EOF |
|
386 | $ cat >> $HGRCPATH << EOF | |
387 | > [experimental] |
|
387 | > [experimental] | |
388 | > lfs.disableusercache = True |
|
388 | > lfs.disableusercache = True | |
389 | > [auth] |
|
389 | > [auth] | |
390 | > l.schemes=http |
|
390 | > l.schemes=http | |
391 | > l.prefix=lo |
|
391 | > l.prefix=lo | |
392 | > l.username=user |
|
392 | > l.username=user | |
393 | > l.password=pass |
|
393 | > l.password=pass | |
394 | > EOF |
|
394 | > EOF | |
395 |
|
395 | |||
396 | $ cat << EOF > userpass.py |
|
396 | $ hg --config extensions.x=$TESTDIR/httpserverauth.py \ | |
397 | > import base64 |
|
|||
398 | > from mercurial.hgweb import common |
|
|||
399 | > def perform_authentication(hgweb, req, op): |
|
|||
400 | > auth = req.headers.get(b'Authorization') |
|
|||
401 | > if not auth: |
|
|||
402 | > raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, b'who', |
|
|||
403 | > [(b'WWW-Authenticate', b'Basic Realm="mercurial"')]) |
|
|||
404 | > if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user', |
|
|||
405 | > b'pass']: |
|
|||
406 | > raise common.ErrorResponse(common.HTTP_FORBIDDEN, b'no') |
|
|||
407 | > def extsetup(ui): |
|
|||
408 | > common.permhooks.insert(0, perform_authentication) |
|
|||
409 | > EOF |
|
|||
410 |
|
||||
411 | $ hg --config extensions.x=$TESTTMP/userpass.py \ |
|
|||
412 | > -R server serve -d -p $HGPORT1 --pid-file=hg.pid \ |
|
397 | > -R server serve -d -p $HGPORT1 --pid-file=hg.pid \ | |
413 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
398 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
414 | $ mv hg.pid $DAEMON_PIDS |
|
399 | $ mv hg.pid $DAEMON_PIDS | |
415 |
|
400 | |||
416 | $ hg clone --debug http://localhost:$HGPORT1 auth_clone | egrep '^[{}]| ' |
|
401 | $ hg clone --debug http://localhost:$HGPORT1 auth_clone | egrep '^[{}]| ' | |
417 | { |
|
402 | { | |
418 | "objects": [ |
|
403 | "objects": [ | |
419 | { |
|
404 | { | |
420 | "actions": { |
|
405 | "actions": { | |
421 | "download": { |
|
406 | "download": { | |
422 | "expires_at": "$ISO_8601_DATE_TIME$" |
|
407 | "expires_at": "$ISO_8601_DATE_TIME$" | |
423 | "header": { |
|
408 | "header": { | |
424 | "Accept": "application/vnd.git-lfs" |
|
409 | "Accept": "application/vnd.git-lfs" | |
425 | "Authorization": "Basic dXNlcjpwYXNz" |
|
410 | "Authorization": "Basic dXNlcjpwYXNz" | |
426 | } |
|
411 | } | |
427 | "href": "http://localhost:$HGPORT1/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d" |
|
412 | "href": "http://localhost:$HGPORT1/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d" | |
428 | } |
|
413 | } | |
429 | } |
|
414 | } | |
430 | "oid": "276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d" |
|
415 | "oid": "276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d" | |
431 | "size": 14 |
|
416 | "size": 14 | |
432 | } |
|
417 | } | |
433 | ] |
|
418 | ] | |
434 | "transfer": "basic" |
|
419 | "transfer": "basic" | |
435 | } |
|
420 | } | |
436 |
|
421 | |||
437 | $ echo 'another blob' > auth_clone/lfs.blob |
|
422 | $ echo 'another blob' > auth_clone/lfs.blob | |
438 | $ hg -R auth_clone ci -Aqm 'add blob' |
|
423 | $ hg -R auth_clone ci -Aqm 'add blob' | |
439 | $ hg -R auth_clone --debug push | egrep '^[{}]| ' |
|
424 | $ hg -R auth_clone --debug push | egrep '^[{}]| ' | |
440 | { |
|
425 | { | |
441 | "objects": [ |
|
426 | "objects": [ | |
442 | { |
|
427 | { | |
443 | "actions": { |
|
428 | "actions": { | |
444 | "upload": { |
|
429 | "upload": { | |
445 | "expires_at": "$ISO_8601_DATE_TIME$" |
|
430 | "expires_at": "$ISO_8601_DATE_TIME$" | |
446 | "header": { |
|
431 | "header": { | |
447 | "Accept": "application/vnd.git-lfs" |
|
432 | "Accept": "application/vnd.git-lfs" | |
448 | "Authorization": "Basic dXNlcjpwYXNz" |
|
433 | "Authorization": "Basic dXNlcjpwYXNz" | |
449 | } |
|
434 | } | |
450 | "href": "http://localhost:$HGPORT1/.hg/lfs/objects/df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3" |
|
435 | "href": "http://localhost:$HGPORT1/.hg/lfs/objects/df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3" | |
451 | } |
|
436 | } | |
452 | } |
|
437 | } | |
453 | "oid": "df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3" |
|
438 | "oid": "df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3" | |
454 | "size": 13 |
|
439 | "size": 13 | |
455 | } |
|
440 | } | |
456 | ] |
|
441 | ] | |
457 | "transfer": "basic" |
|
442 | "transfer": "basic" | |
458 | } |
|
443 | } | |
459 |
|
444 | |||
460 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
445 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
461 |
|
446 | |||
462 | $ cat $TESTTMP/access.log $TESTTMP/errors.log |
|
447 | $ cat $TESTTMP/access.log $TESTTMP/errors.log | |
463 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 401 - (glob) |
|
448 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 401 - (glob) | |
464 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
449 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
465 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
450 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
466 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=506bf3d83f78c54b89e81c6411adee19fdf02156+525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
451 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=506bf3d83f78c54b89e81c6411adee19fdf02156+525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
467 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 401 - (glob) |
|
452 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 401 - (glob) | |
468 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
453 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
469 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 200 - (glob) |
|
454 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 200 - (glob) | |
470 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 401 - (glob) |
|
455 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 401 - (glob) | |
471 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
456 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
472 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D525251863cad618e55d483555f3d00a2ca99597e+4d9397055dc0c205f3132f331f36353ab1a525a3 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
457 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D525251863cad618e55d483555f3d00a2ca99597e+4d9397055dc0c205f3132f331f36353ab1a525a3 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
473 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
458 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
474 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
459 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
475 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
460 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
476 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
461 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
477 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 401 - (glob) |
|
462 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 401 - (glob) | |
478 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
463 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
479 | $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3 HTTP/1.1" 201 - (glob) |
|
464 | $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3 HTTP/1.1" 201 - (glob) | |
480 | $LOCALIP - - [$LOGDATE$] "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
465 | $LOCALIP - - [$LOGDATE$] "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
481 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
466 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now