Fix diff against an empty file (issue124) and add a test for this.
#!/usr/bin/env python## An example CGI script to use hgweb, edit as necessaryimport cgitb, os, syscgitb.enable()# sys.path.insert(0, "/path/to/python/lib") # if not a system-wide installfrom mercurial import hgwebh = hgweb.hgweb("/path/to/repo", "repository name")h.run()