Hg serve with subdirectories showing in the URL
Armen Zambrano Gasparnian
armenzg at mozilla.com
Wed Dec 31 17:21:01 UTC 2008
Hello all,
I am trying to have a local setup in which I would like the URLs to look
like:
http://localhost:8000/l10n-central/af
http://localhost:8000/l10n-central/en-GB
instead of:
http://localhost:8000/af
http://localhost:8000/en-GB
Here is the blog post that explains how I did my setup:
http://armenzg.blogspot.com/2008/12/setup-couple-of-l10n-centrals-repos.html
I have also tried to look to search for information regarding the
section [collections] but I have not been able to find it.
This is what I am using to start the server:
armenzg at armenzg-laptop:/var/hg$ *hg serve --webdir-conf hgweb.config*
These are the contents of hgweb.config
[web]
style = gitweb_mozilla
[collections]
l10n-central/ = l10n-central/
mozilla-central/ = mozilla-central/
Here is the hgrc of one of the repos:
armenzg at armenzg-laptop:/var/hg$ cat l10n-central/af/.hg/hgrc
# the a_ and z_ prefixes are for ordering:
# any hooks which can veto an action (require-singlehead) should be
run before
# hooks which make permanent logs (record-changeset-info)
[hooks]
pretxnchangegroup.a_singlehead =
python:mozhghooks.single_head_per_branch.hook
pretxnchangegroup.z_linearhistory = python:mozhghooks.pushlog.log
[web]
push_ssl = false
allow_push = *
templates = /repos/hg_templates
style = gitweb_mozilla
[extensions]
pushlog-feed = /repos/hgpoller/pushlog-feed.py
buglink = /repos/hgpoller/buglink.py
hgwebjson = /repos/hgpoller/hgwebjson.py
Thanks in advance for any help,
Armen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081231/613c6413/attachment-0001.html>
More information about the Mercurial
mailing list