Files
SCM-Manager/plugins/scm-hg-plugin/src/main/resources/sonia/scm/hgweb.py
2010-11-25 18:25:01 +01:00

10 lines
253 B
Python

#!/usr/bin/env ${python}
import os
repositoryPath = os.environ['SCM_REPOSITORY_PATH']
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb, wsgicgi
application = hgweb(repositoryPath)
wsgicgi.launch(application)