Mercurial > hg
comparison tests/test-http.t @ 25378:98b5676323db
test: use bundle2 in test-http
Now that we have a bundle1 version of this test, we can move the
original to bundle2. This lets us handle the ouput change from using
the bundle2 protocol earlier.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 27 May 2015 12:05:08 -0700 |
parents | 6f15114bdcc3 |
children | d29201352af7 |
comparison
equal
deleted
inserted
replaced
25377:ebbf5b0c945a | 25378:98b5676323db |
---|---|
1 #require serve | 1 #require serve |
2 | |
3 $ cat << EOF >> $HGRCPATH | |
4 > [experimental] | |
5 > # drop me once bundle2 is the default, | |
6 > # added to get test change early. | |
7 > bundle2-exp = True | |
8 > EOF | |
2 | 9 |
3 $ hg init test | 10 $ hg init test |
4 $ cd test | 11 $ cd test |
5 $ echo foo>foo | 12 $ echo foo>foo |
6 $ mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg | 13 $ mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg |
259 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks | 266 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks |
260 "GET /?cmd=capabilities HTTP/1.1" 200 - | 267 "GET /?cmd=capabilities HTTP/1.1" 200 - |
261 "GET /?cmd=branchmap HTTP/1.1" 200 - | 268 "GET /?cmd=branchmap HTTP/1.1" 200 - |
262 "GET /?cmd=stream_out HTTP/1.1" 401 - | 269 "GET /?cmd=stream_out HTTP/1.1" 401 - |
263 "GET /?cmd=stream_out HTTP/1.1" 200 - | 270 "GET /?cmd=stream_out HTTP/1.1" 200 - |
264 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks | |
265 "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d | 271 "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D5fed3813f7f5e1824344fdc9cf8f63bb662c292d |
272 "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=phase%2Cbookmarks | |
266 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases | 273 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases |
267 "GET /?cmd=capabilities HTTP/1.1" 200 - | 274 "GET /?cmd=capabilities HTTP/1.1" 200 - |
268 "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=bookmarks | |
269 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks | |
270 "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D | 275 "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D |
271 "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d | 276 "GET /?cmd=getbundle HTTP/1.1" 401 - x-hgarg-1:bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=phase%2Cbookmarks |
277 "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=5fed3813f7f5e1824344fdc9cf8f63bb662c292d&listkeys=phase%2Cbookmarks | |
272 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases | 278 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases |
273 "GET /?cmd=capabilities HTTP/1.1" 200 - | 279 "GET /?cmd=capabilities HTTP/1.1" 200 - |
274 "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip | 280 "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip |
275 "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces | 281 "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces |
276 "GET /?cmd=capabilities HTTP/1.1" 200 - | 282 "GET /?cmd=capabilities HTTP/1.1" 200 - |
283 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases | 289 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases |
284 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks | 290 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks |
285 "GET /?cmd=branchmap HTTP/1.1" 200 - | 291 "GET /?cmd=branchmap HTTP/1.1" 200 - |
286 "GET /?cmd=branchmap HTTP/1.1" 200 - | 292 "GET /?cmd=branchmap HTTP/1.1" 200 - |
287 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks | 293 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks |
288 "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=686173686564+5eb5abfefeea63c80dd7553bcc3783f37e0c5524 | 294 "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365 |
289 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases | 295 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases |
290 | 296 |
291 $ cd .. | 297 $ cd .. |
292 | 298 |
293 clone of serve with repo in root and unserved subrepo (issue2970) | 299 clone of serve with repo in root and unserved subrepo (issue2970) |