equal
deleted
inserted
replaced
36 $ CONTENT_LENGTH=279; export CONTENT_LENGTH; |
36 $ CONTENT_LENGTH=279; export CONTENT_LENGTH; |
37 |
37 |
38 expect failure because heads doesn't match (formerly known as 'unsynced changes') |
38 expect failure because heads doesn't match (formerly known as 'unsynced changes') |
39 |
39 |
40 $ QUERY_STRING="cmd=unbundle&heads=0000000000000000000000000000000000000000"; export QUERY_STRING |
40 $ QUERY_STRING="cmd=unbundle&heads=0000000000000000000000000000000000000000"; export QUERY_STRING |
41 $ python hgweb.cgi <bundle.hg >page1 2>&1 |
41 $ $PYTHON hgweb.cgi <bundle.hg >page1 2>&1 |
42 $ cat page1 |
42 $ cat page1 |
43 Status: 200 Script output follows\r (esc) |
43 Status: 200 Script output follows\r (esc) |
44 Content-Type: application/mercurial-0.1\r (esc) |
44 Content-Type: application/mercurial-0.1\r (esc) |
45 Content-Length: 64\r (esc) |
45 Content-Length: 64\r (esc) |
46 \r (esc) |
46 \r (esc) |
48 repository changed while preparing changes - please try again |
48 repository changed while preparing changes - please try again |
49 |
49 |
50 successful force push |
50 successful force push |
51 |
51 |
52 $ QUERY_STRING="cmd=unbundle&heads=666f726365"; export QUERY_STRING |
52 $ QUERY_STRING="cmd=unbundle&heads=666f726365"; export QUERY_STRING |
53 $ python hgweb.cgi <bundle.hg >page2 2>&1 |
53 $ $PYTHON hgweb.cgi <bundle.hg >page2 2>&1 |
54 $ cat page2 |
54 $ cat page2 |
55 Status: 200 Script output follows\r (esc) |
55 Status: 200 Script output follows\r (esc) |
56 Content-Type: application/mercurial-0.1\r (esc) |
56 Content-Type: application/mercurial-0.1\r (esc) |
57 Content-Length: 102\r (esc) |
57 Content-Length: 102\r (esc) |
58 \r (esc) |
58 \r (esc) |
63 added 0 changesets with 0 changes to 1 files |
63 added 0 changesets with 0 changes to 1 files |
64 |
64 |
65 successful push, list of heads |
65 successful push, list of heads |
66 |
66 |
67 $ QUERY_STRING="cmd=unbundle&heads=f7b1eb17ad24730a1651fccd46c43826d1bbc2ac"; export QUERY_STRING |
67 $ QUERY_STRING="cmd=unbundle&heads=f7b1eb17ad24730a1651fccd46c43826d1bbc2ac"; export QUERY_STRING |
68 $ python hgweb.cgi <bundle.hg >page3 2>&1 |
68 $ $PYTHON hgweb.cgi <bundle.hg >page3 2>&1 |
69 $ cat page3 |
69 $ cat page3 |
70 Status: 200 Script output follows\r (esc) |
70 Status: 200 Script output follows\r (esc) |
71 Content-Type: application/mercurial-0.1\r (esc) |
71 Content-Type: application/mercurial-0.1\r (esc) |
72 Content-Length: 102\r (esc) |
72 Content-Length: 102\r (esc) |
73 \r (esc) |
73 \r (esc) |
78 added 0 changesets with 0 changes to 1 files |
78 added 0 changesets with 0 changes to 1 files |
79 |
79 |
80 successful push, SHA1 hash of heads (unbundlehash capability) |
80 successful push, SHA1 hash of heads (unbundlehash capability) |
81 |
81 |
82 $ QUERY_STRING="cmd=unbundle&heads=686173686564 5a785a5f9e0d433b88ed862b206b011b0c3a9d13"; export QUERY_STRING |
82 $ QUERY_STRING="cmd=unbundle&heads=686173686564 5a785a5f9e0d433b88ed862b206b011b0c3a9d13"; export QUERY_STRING |
83 $ python hgweb.cgi <bundle.hg >page4 2>&1 |
83 $ $PYTHON hgweb.cgi <bundle.hg >page4 2>&1 |
84 $ cat page4 |
84 $ cat page4 |
85 Status: 200 Script output follows\r (esc) |
85 Status: 200 Script output follows\r (esc) |
86 Content-Type: application/mercurial-0.1\r (esc) |
86 Content-Type: application/mercurial-0.1\r (esc) |
87 Content-Length: 102\r (esc) |
87 Content-Length: 102\r (esc) |
88 \r (esc) |
88 \r (esc) |