hg webdir gives empty raw files
David Demelier
demelier.david at gmail.com
Sat Jan 5 11:12:12 UTC 2013
On 03/01/2013 07:20, Matt Mackall wrote:
> On Tue, 2013-01-01 at 12:00 +0100, David Demelier 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?
>
> I did:
>
> $ hg clone <your repo>
> $ cd <your repo>
> $ hg verify # success
> $ hg serve
>
> ..and browsed that file just fine with the built-in webserver.
>
> I think you've probably mangled your Mercurial template install as the
> following URL works:
>
What do you mean by template install? My hgweb.config is almost default :
[collections]
repos/ = repos/
[web]
baseurl = http://hg.malikania.fr/
encoding = UTF-8
[extensions]
hgext.highlight =
> http://hg.malikania.fr/cmake-modules/raw-file/c072966dabb0/FindSDL_gfx.cmake
>
> and is simply consulting a different template called 'raw'.
>
> As always, the very first thing you should do with an hgweb problem is
> _check your webserver error logs_.
>
There are no much errors, when I try to get a file with .cmake or no
extension it produces the following output :
109.217.214.81 hg.malikania.fr - [05/Jan/2013:12:10:09 +0100] "GET
/wing/static/coal-file.png HTTP/1.1" 304 0
"http://hg.malikania.fr/wing/file/8462d4ad5206" "Opera/9.80 (X11;
FreeBSD 9.1-RELEASE amd64) Presto/2.12.388 Version/12.12"
109.217.214.81 hg.malikania.fr - [05/Jan/2013:12:10:09 +0100] "GET
/wing/static/style-paper.css HTTP/1.1" 304 0
"http://hg.malikania.fr/wing/file/8462d4ad5206" "Opera/9.80 (X11;
FreeBSD 9.1-RELEASE amd64) Presto/2.12.388 Version/12.12"
109.217.214.81 hg.malikania.fr - [05/Jan/2013:12:10:09 +0100] "GET
/wing/static/mercurial.js HTTP/1.1" 304 0
"http://hg.malikania.fr/wing/file/8462d4ad5206" "Opera/9.80 (X11;
FreeBSD 9.1-RELEASE amd64) Presto/2.12.388 Version/12.12"
109.217.214.81 hg.malikania.fr - [05/Jan/2013:12:10:09 +0100] "GET
/wing/static/hglogo.png HTTP/1.1" 304 0
"http://hg.malikania.fr/wing/file/8462d4ad5206" "Opera/9.80 (X11;
FreeBSD 9.1-RELEASE amd64) Presto/2.12.388 Version/12.12"
109.217.214.81 hg.malikania.fr - [05/Jan/2013:12:10:14 +0100] "GET
/wing/file/8462d4ad5206/FindWing.cmake HTTP/1.1" 200 0
"http://hg.malikania.fr/wing/file/8462d4ad5206" "Opera/9.80 (X11;
FreeBSD 9.1-RELEASE amd64) Presto/2.12.388 Version/12.12"
Cheers and thanks for your answer :)
More information about the Mercurial
mailing list