47 Server should send application/mercurial-0.1 to clients if no Accept is used |
47 Server should send application/mercurial-0.1 to clients if no Accept is used |
48 |
48 |
49 $ get-with-headers.py --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
49 $ get-with-headers.py --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
50 200 Script output follows |
50 200 Script output follows |
51 content-type: application/mercurial-0.1 |
51 content-type: application/mercurial-0.1 |
52 date: * (glob) |
52 date: $HTTP_DATE$ |
53 server: * (glob) |
53 server: * (glob) |
54 transfer-encoding: chunked |
54 transfer-encoding: chunked |
55 |
55 |
56 Server should send application/mercurial-0.1 when client says it wants it |
56 Server should send application/mercurial-0.1 when client says it wants it |
57 |
57 |
58 $ get-with-headers.py --hgproto '0.1' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
58 $ get-with-headers.py --hgproto '0.1' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
59 200 Script output follows |
59 200 Script output follows |
60 content-type: application/mercurial-0.1 |
60 content-type: application/mercurial-0.1 |
61 date: * (glob) |
61 date: $HTTP_DATE$ |
62 server: * (glob) |
62 server: * (glob) |
63 transfer-encoding: chunked |
63 transfer-encoding: chunked |
64 |
64 |
65 Server should send application/mercurial-0.2 when client says it wants it |
65 Server should send application/mercurial-0.2 when client says it wants it |
66 |
66 |
67 $ get-with-headers.py --hgproto '0.2' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
67 $ get-with-headers.py --hgproto '0.2' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
68 200 Script output follows |
68 200 Script output follows |
69 content-type: application/mercurial-0.2 |
69 content-type: application/mercurial-0.2 |
70 date: * (glob) |
70 date: $HTTP_DATE$ |
71 server: * (glob) |
71 server: * (glob) |
72 transfer-encoding: chunked |
72 transfer-encoding: chunked |
73 |
73 |
74 $ get-with-headers.py --hgproto '0.1 0.2' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
74 $ get-with-headers.py --hgproto '0.1 0.2' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
75 200 Script output follows |
75 200 Script output follows |
76 content-type: application/mercurial-0.2 |
76 content-type: application/mercurial-0.2 |
77 date: * (glob) |
77 date: $HTTP_DATE$ |
78 server: * (glob) |
78 server: * (glob) |
79 transfer-encoding: chunked |
79 transfer-encoding: chunked |
80 |
80 |
81 Requesting a compression format that server doesn't support results will fall back to 0.1 |
81 Requesting a compression format that server doesn't support results will fall back to 0.1 |
82 |
82 |
83 $ get-with-headers.py --hgproto '0.2 comp=aa' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
83 $ get-with-headers.py --hgproto '0.2 comp=aa' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - |
84 200 Script output follows |
84 200 Script output follows |
85 content-type: application/mercurial-0.1 |
85 content-type: application/mercurial-0.1 |
86 date: * (glob) |
86 date: $HTTP_DATE$ |
87 server: * (glob) |
87 server: * (glob) |
88 transfer-encoding: chunked |
88 transfer-encoding: chunked |
89 |
89 |
90 #if zstd |
90 #if zstd |
91 zstd is used if available |
91 zstd is used if available |