On Windows XP, with Mercurial 2.1.1 (and 2.1 earlier), when I go into some repository and issue either "hg serve" or "hg serve -d" they both work all right, but when I try "hg serve --web-conf c:\somepath\hgwebrc" it only works as non-daemon. With "-d" option it crashes immediately with "abort: child process failed to start" error message. The hgwebrc file is as simple as this: [web] style = monoblue address = localhost [paths] /mercurial/repo = c:\develop\repo
Works for me with default tip, on WinXP, local VS2008 build. Here is my test script: """ C:\dev\mercurial>mkdir parent C:\dev\mercurial>cd parent C:\dev\mercurial\parent>hg init repo C:\dev\mercurial\parent>cd repo C:\dev\mercurial\parent\repo>echo a > a C:\dev\mercurial\parent\repo>hg ci -Am adda adding a C:\dev\mercurial\parent\repo>cd .. C:\dev\mercurial\parent>copy CON hgweb.conf [paths] /mercurial/repo = c:\dev\mercurial\parent\repo ^Z 1 file(s) copied. C:\dev\mercurial\parent>hg serve -d --web-conf hgweb.conf C:\dev\mercurial\parent>curl http://localhost:8000 | grep repo <title>Mercurial repositories index</title> <td><a href="/mercurial/repo/">mercurial/repo</a></td> """ I can browse the repository. I suppose this is an executable/toolchain issue.
--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:28 EDT --- This bug was previously known as _bug_ 3310 at http://mercurial.selenic.com/bts/issue3310