hg webdir gives empty raw files
Matt Mackall
mpm at selenic.com
Thu Jan 3 06:20:31 UTC 2013
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:
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_.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list