The wiki mentions it’s possible to do this under hg serve, but there aren’t any examples (such as a sample webdir-conf file). Yes I know it would be better to do this all under Apache, but this is a local machine and hg serve just makes sense for us.
Share
As you’ve hinted at you use the
hg serve --webdir-conf FILEinvocation and the webdir.conf format is the same as it is for hgweb.cgi. So those examples apply to you too:https://www.mercurial-scm.org/wiki/HgWebDirStepByStep#Preparing_the_config
so at your most basic you can do:
where
repos/is the path on your local system to the directory containing the repositories.(and you’re right it would be much better to take the time to do this under Apache).