Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 281232

Summary: dev-util/mercurial-1.3.1 - init script for built-in light-weight web server
Product: Gentoo Linux Reporter: Christoph Junghans (RETIRED) <junghans>
Component: [OLD] DevelopmentAssignee: Krzysztof Pawlik (RETIRED) <nelchael>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: djc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://mercurial.selenic.com/wiki/hgserve
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for mercurial-1.3.1.ebuild
init script for hg serve
configuration file for hg serve
example webdir-conf for hg serve

Description Christoph Junghans (RETIRED) gentoo-dev 2009-08-12 17:35:14 UTC
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.
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2009-08-12 17:37:31 UTC
Created attachment 201057 [details, diff]
patch for mercurial-1.3.1.ebuild
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2009-08-12 17:38:23 UTC
Created attachment 201059 [details]
init script for hg serve
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2009-08-12 17:39:08 UTC
Created attachment 201062 [details]
configuration file for hg serve
Comment 4 Christoph Junghans (RETIRED) gentoo-dev 2009-08-12 17:41:19 UTC
Created attachment 201064 [details]
example webdir-conf for hg serve

just copy paste from /usr/share/doc/mercurial-1.3.1/hgwebdir.cgi
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-08-12 23:12:54 UTC
Please don't CC maintainers/herds yourself. Leave that to the bug-wranglers.
Comment 6 Christoph Junghans (RETIRED) gentoo-dev 2009-09-17 18:07:57 UTC
@djc: These changes should also work in mercurial-1.3.1-r1 ebuild.
Comment 7 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-09-17 18:52:16 UTC
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...
Comment 8 Christoph Junghans (RETIRED) gentoo-dev 2009-09-18 07:58:25 UTC
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.

Comment 9 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-09-18 12:12:33 UTC
Closing, this is probably not a good idea.
Comment 10 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-09-18 12:13:04 UTC
Ah, sorry, I should make it WONTFIX.