ref: 26dc73c763de25196a60caba7f7815b13cf2f91f
dir: /sys/src/cmd/hg/hgweb.cgi/
#!/bin/python # enable importing on demand to reduce startup time from mercurial import demandimport; demandimport.enable() from mercurial.hgweb.hgweb_mod import hgweb import mercurial.hgweb.wsgicgi as wsgicgi import os application = hgweb(os.environ["REPO_ROOT"], os.environ["REPO_NAME"]) wsgicgi.launch(application)