Mercurial server using IIS7 and CGI - Bad Gateway error if cloning to a specific revision
Matt Mackall
mpm at selenic.com
Mon Aug 16 08:36:18 CDT 2010
On Mon, 2010-08-16 at 14:07 +0300, Eduard Stefan wrote:
> When I try to clone to revision 1 of a test repo the response from the
> CGI script is:
>
> 2 changesets found
> Status: 200 Script output follows
> Content-Type: application/mercurial-0.1
That's your problem. Somehow that first line is leaking into the CGI
output stream and making it invalid. It appears to be coming from here:
def changegroupinfo(self, nodes, source):
if self.ui.verbose or source == 'bundle':
self.ui.status(_("%d changesets found\n") % len(nodes))
And that suggests you have [ui] verbose = True set in your hgrc
somewhere. hgweb should probably forcibly disable verbose and debug.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list