Serving multiple repositories with hg. How?

The wiki mentions that this can be done under the hg service, but there are no examples (for example, a sample webdir-conf file). Yes, I know that it would be better to do all this under Apache, but this is a local machine, and the hg service just makes sense to us.

+7
version-control mercurial installation config
source share
3 answers

As you hinted, you are using the hg serve --webdir-conf FILE call, and the webdir.conf format is the same as for hgweb.cgi. These examples also apply to you:

https://www.mercurial-scm.org/wiki/HgWebDirStepByStep#Preparing_the_config

so that you can do the most basic:

 [paths] /repos = /webdata/hg_repos/* 

where repos/ is the path of your local system to the directory containing the repositories.

(and you're right, it would be much better to spend time on this in Apache).

+12
source share

use this in your webdir configuration (for example)

 foo.config << EOL [paths] power = power/Repo billable = /path/to/billable/Repo EOL 

hg serve --webdir-conf foo.config

Assuming your repositories live in different places ...

+8
source share

Alternatively, you can use RhodeCode, a standalone application written on pylons.

"RhodeCode is a Pylons-based Mercurial repository browser / control engine built with push / pull and full-text search and permissions."

Here you can see the demo.

http://demo.rhodecode.org

Hi

+5
source share

All Articles