Files
SCM-Manager/plugins/scm-hg-plugin/src/main/resources/sonia/scm/hgweb.py

10 lines
253 B
Python
Raw Normal View History

#!/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)