hgweb.cgi throws a 502 (bad gateway) when pushing

2019-02-17 13:21发布

问题:

I've configured hgweb.cgi behind iis7 on windows server 2008. I can pull the repository just fine. However whenever I push I get a 502 bad gateway. I've found a posting which seems to indicate this is a problem with the mercurial config on the server. mercurial doesnt seem to be picking up an http proxy (fiddler) from my local machine even if its configured.

Questions are:

  1. how do I 'fix' the 502 problem?
  2. failing that how do I make mercurial use the proxy so I can figure out whats going wrong?
  3. how do I adjust the verbosity setting for mercurial 'properly' given that this is running under a webserver?

回答1:

It sounds like this problem.

I was having the same issues with pushing a repository, but it went away after I had installed a later version of Mercurial (2.0.1). I used the instructions here, (paying attention to the comment to that post by Ethan J Brown).