]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/hg/hgweb.cgi
ndb/dnsquery, ndb/csquery: handle long lines
[plan9front.git] / sys / src / cmd / hg / hgweb.cgi
1 #!/bin/python
2
3 # enable importing on demand to reduce startup time
4 from mercurial import demandimport; demandimport.enable()
5
6 from mercurial.hgweb.hgweb_mod import hgweb
7 import mercurial.hgweb.wsgicgi as wsgicgi
8 import os
9 application = hgweb(os.environ["REPO_ROOT"], os.environ["REPO_NAME"])
10 wsgicgi.launch(application)