view hgweb.cgi @ 539:44b29b98254a

Minor hgweb fixup for new diff code -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Minor hgweb fixup for new diff code manifest hash: a80a817fa1511c6ea76f07b2e03691539c19de55 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxO7lywK+sNU5EO8RArAkAJ49Piw1lKwhno5XtTdE0J2B3KIeJQCgpeZW JbFuy/zzo2e45xu6Uez8CMw= =sQOB -----END PGP SIGNATURE-----
author mpm@selenic.com
date Thu, 30 Jun 2005 23:21:09 -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()