hg webdir gives empty raw files

Simon King simon at simonking.org.uk
Tue Jan 1 11:30:07 UTC 2013


On 1 Jan 2013, at 11:01, David Demelier <demelier.david at gmail.com> wrote:

> On 18/12/2012 19:35, David Demelier wrote:
>> Hello,
>>
>> I've updated mercurial to 2.4, and now my hg repositories does not
>> output the raw files anymore. I can still use the full hg web interface
>> but no for raw files.
>>
>> See :
>>
>> http://hg.malikania.fr/cmake-modules/file/c072966dabb0
>>
>> When clicking on the file I've noticed that firefox complains about :
>>
>> Timestamp: 18/12/2012 19:34:11
>> Error: The character encoding of the plain text document was not
>> declared. The document will render with garbled text in some browser
>> configurations if the document contains characters from outside the
>> US-ASCII range. The character encoding of the file needs to be declared
>> in the transfer protocol or file needs to use a byte order mark as an
>> encoding signature.
>> Source File:
>> http://hg.malikania.fr/cmake-modules/file/c072966dabb0/FindSDL_gfx.cmake
>> Line: 0
>>
>> Maybe this is a related issue?
>>
>> My repositories were made with an old version of mercurial (probably 2.0
>> or earlier). This is happening with lighttpd.
>>
>> Cheers,
>>
>> David
>
> No one knows? Or it's more a WEB server problem?
>

Some things to try:

a) Does it work if you use "hg serve"?

b) Does it work if you use wget or curl instead of a web browser?

c) Do your web server logs say anything about the size of the response?

Simon



More information about the Mercurial mailing list