view hgweb.cgi @ 560:f9ad1a2c72eb

fancyopts: drop unneeded import -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 fancyopts: drop unneeded import manifest hash: 09729db8a301510f021fd84a9e82a16ea3ccc67b -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxZegywK+sNU5EO8RAnJwAKCn8kw2VzLc1NgObPFyYI1NxtBJSACgk1v4 d041JB9E0PybyftBFV55Of0= =Cp7N -----END PGP SIGNATURE-----
author mpm@selenic.com
date Fri, 01 Jul 2005 11:21:04 -0800
parents 5f65a108a559
children d0db3462d568
line wrap: on
line source

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