multirepo web serving question
Jordan Breeding
jordan.breeding at mac.com
Wed Aug 31 08:00:47 CDT 2005
I am trying to setup multirepo web serving through apache. I have
the script basically setup:
#!/usr/local/bin/python
#
# An example CGI script to export multiple hgweb repos, edit as
necessary
import cgitb, sys
cgitb.enable()
#sys.path.insert(0, "/path/to/python/lib") # if not a system-wide
install
from mercurial import hgweb
# The config file looks like this:
# [paths]
# virtual/path = /real/path
# virtual/path = /real/path
# Alternatively you can pass a list of ('virtual/path', '/real/path')
tuples
# or use a dictionary with entries like 'virtual/path': '/real/path'
h = hgweb.hgwebdir({'hg/mercurial': '/Users/jordan/hg_repos/mercurial'})
h.run()
My questions are:
1) in this setup how do you get the description and contact
information? do these need to be in .hg/hgrc?
2) i can get to my page with http://<box>/~<user>, but from there I
can't get to any of the repos, I just have index.cgi in /Users/<user>/
Sites (which is like ~/public_html, but on OS X). is there something
special that I am missing on either the hg or the apache side to make
the links to the repos actually work?
thanks,
Jordan
More information about the Mercurial
mailing list