hgweb.cgi
author Vadim Gelfer <vadim.gelfer@gmail.com>
Wed, 03 May 2006 14:40:39 -0700
changeset 2192 2be3ac7abc21
parent 391 5f65a108a559
child 2506 d0db3462d568
permissions -rw-r--r--
add bugzilla integration hook. example of writing hook in python. hook updates bugzilla bugs when it sees commit comments that mention bug id, such as "i fixed bug 77". only bugzilla 2.16 supported yet, but easy to extend. bugzilla versions have different schema, i have not used later than 2.16.

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