hgweb Odd-string length error

Matt Mackall mpm at selenic.com
Fri Jul 25 13:44:47 UTC 2014


On Thu, 2014-07-24 at 16:37 -0400, Jérôme Godbout wrote:
> A quick dirty workaround if anybody got the problem:
...
> from mercurial.hgweb import hgweb
> from flup.server.cgi import WSGIServer

FYI, the hgweb.cgi we ship has:

 from mercurial.hgweb import hgweb, wsgicgi

..which already does all the things that flup.server.cgi is doing for
you, without the bugs.

http://www.selenic.com/hg/file/54ff2789d75e/mercurial/hgweb/wsgicgi.py#l17

We fixed this particular bug way back in 2007, a full year before 1.0
was released:

http://www.selenic.com/hg/rev/5a89c61c189c

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list