Search code examples
mercurialrepositorytortoisehgtortoisehg-2.0

Mercurial HG Serve HTTP 500 Error


I'm running a mercurial repository using hg serve. I can access it via a browser and view everything in my repository however when I try to do an hg clone with the same url I get HTTP Error: 500 (Internal Server Error).

UPDATE: It turns out this is an issue somehow caused by using TortoiseHG web server instead of using hg serve explicitly. The error that TortoiseHG is showing is "AttributeError: 'Blackhole' object has no attribute 'fileno'"


Solution

  • It looks like they're tracking this issue here: https://bitbucket.org/tortoisehg/thg/issue/937/error-cloning-repo-using-serve.

    For now the solution is to run hg serve from the command line.