view hgweb.cgi @ 573:fbfbd4e506c3

transaction: nullify journal after close() -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 transaction: nullify journal after close() This keeps us from trying to cleanup in __del__. bug spotted by K Thananchayan <thananck@yahoo.com> manifest hash: 1f4c5fa43d2458cdcb6ec0f0a7066b3c3e699f33 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxwQ6ywK+sNU5EO8RAuGhAJ9+BnKILwRCF9EKlPTz2zptiysQ/QCgsB3s VKIehiStv+ibWQQi15k4mwk= =nZD1 -----END PGP SIGNATURE-----
author mpm@selenic.com
date Sat, 02 Jul 2005 13:16:42 -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()