view hgweb.cgi @ 1794:98b6c1cad58b

only write the dirstate when something changed
author Benoit Boissinot <>
date Thu, 23 Feb 2006 02:17:08 +0100
parents 5f65a108a559
line wrap: on
line source

#!/usr/bin/env python
# An example CGI script to use hgweb, edit as necessary

import cgitb, os, sys

# 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")