grim/hgkeeper
Clone
Summary
Browse
Changes
Graph
Split the server pieces out of hgweb.go
2022-03-07, Gary Kramlich
334e63a51155
file is
Executable
Split the server pieces out of hgweb.go
#!/usr/bin/env python3
config
=
b
'{{.HGWEB_CONFIG}}'
from
mercurial
import
demandimport
;
demandimport
.
enable
()
from
mercurial.hgweb
import
hgweb
,
wsgicgi
application
=
hgweb
(
config
)
wsgicgi
.
launch
(
application
)