hgweb.cgi
author Thomas Arendsen Hein <thomas@intevation.de>
Fri, 01 Jul 2005 08:55:10 +0100
changeset 552 2204311609a0
parent 391 5f65a108a559
child 2506 d0db3462d568
permissions -rw-r--r--
Allow specifying revisions in 'hg log' like with 'hg diff'. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Allow specifying revisions in 'hg log' like with 'hg diff'. manifest hash: 62d48dbaa0213b36f08dc15bc3b1a1f35ecd89f0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCxPbeW7P1GVgWeRoRApOgAJsFYCQ8EEpYDQz8t53bRXfrP/MXwwCfWDV5 dLv6zwG6/I++SyChFkTPfAY= =cg0V -----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()