hgweb.cgi
author mpm@selenic.com
Wed, 24 Aug 2005 00:32:10 -0700
changeset 1019 a9cca981c423
parent 391 5f65a108a559
child 2506 d0db3462d568
permissions -rw-r--r--
Create helper functions for I/O to files in the working directory This simplifies some code and gives us a single place to add I/O filters.

#!/usr/bin/env python
#
# An example CGI script to use hgweb, edit as necessary

import cgitb, os, sys
cgitb.enable()

# sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
from mercurial import hgweb

h = hgweb.hgweb("/path/to/repo", "repository name")
h.run()