view hgweb.cgi @ 683:104d2aee3b44

Revert hgeditor change to manifest bits -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Revert hgeditor change to manifest bits I'd rather have a blank line at the top. This code primarily exists to show possible methods of signing changesets so I'm not very concerned about conciseness or performance. I should probably have all the signing commented out or disabled by default. manifest hash: 764da8d65bdaf9b45c7e3efd6cd2b4ee70979417 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFC01sdywK+sNU5EO8RAr2BAJ9Uq0XberFrYyehvmoKgE8p/j0XFQCdFPJr DPDMbKeBHwK/yMiileBFW8o= =DvnD -----END PGP SIGNATURE-----
author Matt Mackall <mpm@selenic.com>
date Mon, 11 Jul 2005 21:54:37 -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()