These changes allow to start the built-in via init script. Nice and useful, if you just want to serve some repos without installing a heavy http server, like apache.
Created attachment 201057 [details, diff] patch for mercurial-1.3.1.ebuild
Created attachment 201059 [details] init script for hg serve
Created attachment 201062 [details] configuration file for hg serve
Created attachment 201064 [details] example webdir-conf for hg serve just copy paste from /usr/share/doc/mercurial-1.3.1/hgwebdir.cgi
Please don't CC maintainers/herds yourself. Leave that to the bug-wranglers.
@djc: These changes should also work in mercurial-1.3.1-r1 ebuild.
Hmm, I don't exactly feel this is the right direction. I guess my issue is that hg serve isn't really intended for long-running servers -- as the primary maintainer of hgwebdir, I really feel that mod_wsgi (or FCGI, I guess) is the best way to run those, so I don't particularly like this one...
Good point, I could not experience any stability problems with hg serve so far. I just found it by far more easy to set it up. I am also using hg through apache with mod_python on an other gentoo box. However in the end there is not much difference.
Closing, this is probably not a good idea.
Ah, sorry, I should make it WONTFIX.