view hgwebdir.cgi @ 1078:33f40d0c6124

Various cleanups for tarball support s/tarball/archive/ query config rather than maintaining a list default all archive support to off use changeset nodes rather than manifest nodes use web:name for archive name don't use rev number in filename, it's not portable refactor manifest lookup bits use finally: clause to delete tmpfile
author mpm@selenic.com
date Fri, 26 Aug 2005 20:52:31 -0700
parents 8d791bea49d4
children 8a39df05d2c1
line wrap: on
line source

#!/usr/bin/env 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

h = hgweb.hgwebdir("hgweb.config")
h.run()