logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

multirepo web serving question: msg#00927

Subject: multirepo web serving question
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


<Prev in Thread] Current Thread [Next in Thread>