Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281232 - dev-util/mercurial-1.3.1 - init script for built-in light-weight web server
Summary: dev-util/mercurial-1.3.1 - init script for built-in light-weight web server
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Krzysztof Pawlik (RETIRED)
URL: http://mercurial.selenic.com/wiki/hgs...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-12 17:35 UTC by Christoph Junghans (RETIRED)
Modified: 2009-09-18 12:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for mercurial-1.3.1.ebuild (mercurial-1.3.1.ebuild.patch,459 bytes, patch)
2009-08-12 17:37 UTC, Christoph Junghans (RETIRED)
Details | Diff
init script for hg serve (hg-serve.initd,533 bytes, text/plain)
2009-08-12 17:38 UTC, Christoph Junghans (RETIRED)
Details
configuration file for hg serve (hg-serve.confd,1.12 KB, text/plain)
2009-08-12 17:39 UTC, Christoph Junghans (RETIRED)
Details
example webdir-conf for hg serve (hgweb.config,1.35 KB, text/plain)
2009-08-12 17:41 UTC, Christoph Junghans (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.