grim/hgkeeper
Clone
Summary
Browse
Changes
Graph
Add an HGK_REPOSITORY environment variable containing the relative path to the repository when running hg commands
2021-10-28, Gary Kramlich
b3b134a272ad
file is
Executable
Add an HGK_REPOSITORY environment variable containing the relative path to the repository when running hg commands
#!/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
)