hgweb.cgi
author Bryan O'Sullivan <bos@serpentine.com>
Mon, 04 Jul 2005 12:39:35 -0800
changeset 618 4051b78c53c7
parent 391 5f65a108a559
child 2506 d0db3462d568
permissions -rw-r--r--
Handle unrecognised options correctly. # HG changeset patch # User Bryan O'Sullivan <bos@serpentine.com> # Node ID 837a023781a0228e5791e8e278129d2d54d13f99 # Parent d2994b5298fb20f87dc1d4747635b280db3c0526 Handle unrecognised options correctly.

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