view hgweb.cgi @ 541:abaea35387a8

Added support for hg:// and old-http:// to 'hg clone'. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Added support for hg:// and old-http:// to 'hg clone'. manifest hash: 4292cc7927afbec5663b5fff4317a238fb65cdec -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCw44lW7P1GVgWeRoRArWzAJ9AjiCF7poldqFxshV+lAyHZKy2PACgpCt1 KTdmdp+AL6m953NnYc5QNbo= =BWbr -----END PGP SIGNATURE-----
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 30 Jun 2005 07:16:05 +0100
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()