Comment 3 for bug 731240

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 731240] [NEW] opening over http in dumb mode fails in selftest

On Tue, 2011-03-08 at 12:31 +0000, John A Meinel wrote:
> On 3/8/2011 1:09 PM, Jelmer Vernooij wrote:
> > Public bug reported:
> >
> > -----------
> > 116.332 bzr-hg: using Mercurial 1.7.5
> > 116.355 hg: using http://127.0.0.1:45264/
> > 116.356 hg: sending between command
> > 116.398 hg: real URL is http://127.0.0.1:45264/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between/
> > 116.399 hg: requested URL: 'http://127.0.0.1:45264/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between'
> > 116.399 hg: (falling back to static-http)
> > 116.438 opening working tree '/tmp/testbzr-ratX8g.tmp'
> > ------------
>
> It looks like Mercurial *requires* Range requests to be available,
> rather than falling back to compatibility code. By default Python's HTTP
> servers don't support range requests. As do a few servers we've run into
> in the past. At least, when we started using it, we made sure people
> could use a variety of servers.
>
> Any more, bzr would be pretty poor if you didn't have Range available.
> So it would be probably reasonable to have our HTTP server implement it.
The weird thing is, this happens during the request for ".hg/requires"
which is their equivalent of our format file. I don't know why you would
want to use a range request on that.

It's probably necessary for other things later in the process too
though.

Cheers,

Jelmer