annotate tests/test-hgcia @ 8612:e10e984bea46
statichttprepo: handle remote not supporting Range headers
- If remote does not support Range header, 200 is answered instead of 206. The
HTTPRangeHandler left these responses unchanged, so the data has to be sliced
by the receiver.
- httprangereader file pointer was not updated.
author |
Patrick Mezard <pmezard@gmail.com> |
date |
Sun, 24 May 2009 18:31:01 +0200 |
parents |
b80b944836ec |
children |
|
rev |
line source |
7438
|
1 #!/bin/sh
|
|
2
|
|
3 cat >> $HGRCPATH <<EOF
|
|
4 [extensions]
|
|
5 hgcia=
|
|
6
|
|
7 [hooks]
|
|
8 changegroup.cia = python:hgext.hgcia.hook
|
|
9
|
|
10 [cia]
|
|
11 user = testuser
|
|
12 project = testproject
|
|
13 test = True
|
|
14 EOF
|
|
15
|
|
16 hg init src
|
|
17 hg init cia
|
|
18
|
|
19 cd src
|
|
20 echo foo > foo
|
|
21 hg ci -Amfoo
|
|
22
|
|
23 hg push ../cia
|