blob: 233d5f763853bc4afa7edfd9965d805522ee0d03 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/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)
|