--- a/hg/hgweb.go Wed Mar 23 13:41:00 2022 -0500
+++ b/hg/hgweb.go Wed Mar 23 16:01:28 2022 -0500
@@ -3,7 +3,6 @@
log "github.com/sirupsen/logrus"
@@ -21,13 +20,14 @@
- "import mercurial;print(mercurial.__path__[0])",
+ "from mercurial import templater; print(templater.templatedir().decode('UTF-8'))", cmd := exec.Command(args[0], args[1:]...)
raw, err := cmd.CombinedOutput()
+ log.Debugf("raw: %#v\n", string(raw)) @@ -36,7 +36,7 @@
return "", fmt.Errorf("failed to find the templates directory")
- templatesDir = filepath.Join(templatesDir, "templates")
+ log.Infof("using %s as the templates directory\n", templatesDir)