- a single local repository with a web interface plus pushlog
- multiple local repositories with a web interface without pushlog
These are the steps I followed:
- sudo mkdir -p /var/hg
- sudo chown -R armenzg /var/hg
- sudo cat <<> /var/hg/hgweb.config
[collections]
l10n-central/ = l10n-central/
MARKER - mkdir l10n-central
- hg init l10n-central/af
- hg init l10n-central/de
- hg serve --webdir-conf hgweb.config
You can now do this:
$> hg clone http://localhost:8000/af
or
$> hg clone http://localhost:8000/af
You can even configure the hgweb.config file in your ~/.hgrc rather than specifying it on the command line:
ReplyDelete[web]
config = /path/to/hgweb.config
you can also specify useful things like:
[web]
port = 8080
contact = Full Name <email@address>
David, how/where can I learn more of these useful tags (if I could call them like that) and what can go inside them?
ReplyDeleteI spent a lot of time trying to find out what other things I could put under "[collections]" and what was the correct syntax for this but I did not have too much luck
BTW, thanks for the comment!
ReplyDeleteFound!
ReplyDeletehttp://www.selenic.com/mercurial/hgrc.5.html