hgweb.cgi
author Thomas Arendsen Hein <thomas@intevation.de>
Sat, 16 Jul 2005 17:25:05 +0100
changeset 717 a51e3ded642d
parent 391 5f65a108a559
child 2506 d0db3462d568
permissions -rw-r--r--
Be even more specific with .hgignore regexps, added *.swp files. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Be even more specific with .hgignore regexps, added *.swp files. manifest hash: 6664148b687983a41ef50d5bd4fd40426fb96621 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC2TThW7P1GVgWeRoRAhObAJ9ZuBxwCBSTZ9MSonw4q1EaluxMMQCfdrBo Czu2RdQEK4RZQh/ngzm73p8= =8XOM -----END PGP SIGNATURE-----

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