hgwebdir.cgi
author Thomas Arendsen Hein <thomas@intevation.de>
Sat, 27 Aug 2005 23:36:25 +0200
changeset 1108 7a75d8fbbdaf
parent 1064 8d791bea49d4
child 1144 8a39df05d2c1
permissions -rw-r--r--
Remove some options from 'hg grep': -Z (we have -0 as in locate) -a (use "-r 0:tip" instead, or always grep all unless -r is given) -e (we have the PATTERN argument) -v (doesn't work, and this is more of a job for 'hg cat|grep') -s (we have -q/--quiet) -f (should be always enabled if -l used, or enable on -v/--verbose)

#!/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()