Hg serve with subdirectories showing in the URL
Armen Zambrano Gasparnian
armenzg at mozilla.com
Wed Dec 31 20:17:38 UTC 2008
I have got it fixed:
armenzg at armenzg-laptop:/var/hg$ cat hgweb_paths.config
[web]
templates = /repos/hg_templates
style = gitweb_mozilla
[paths]
l10n-central/af = l10n-central/af
l10n-central/de = l10n-central/de
mozilla-central = mozilla-central
Aside of my initial question, it stills seems that "style =
gitweb_mozilla" is not being applied
I have found a css file in here:
/repos/hg_templates/static/style-gitweb.css
/usr/lib/python2.5/site-packages/mercurial-1.0.2-py2.5-linux-i686.egg/mercurial/templates/static/style-gitweb.css
and I have found the gitweb_mozilla folder in here:
/repos/hg_templates/gitweb_mozilla
The style works for:
http://localhost:8000/l10n-central/af
http://localhost:8000/l10n-central/de
but not for:
http://localhost:8000/
http://localhost:8000/l10n-central/
Cheers,
Armen
On 12/31/2008 12:21 PM, Armen Zambrano Gasparnian wrote:
> 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
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081231/1cf5319e/attachment-0001.html>
More information about the Mercurial
mailing list