Updated hgweb config
authorLuke Hoersten <luke@hoersten.org>
Mon, 29 Jun 2020 19:21:11 -0500
changeset 58 baca37fdc8c3
parent 57 628402a01a59
child 59 b339d3c51504
Updated hgweb config
mercurial/web/tasks/main.yaml
mercurial/web/templates/hgweb.config.j2
mercurial/web/templates/hgweb.wsgi.j2
--- a/mercurial/web/tasks/main.yaml	Mon Jun 29 18:59:24 2020 -0500
+++ b/mercurial/web/tasks/main.yaml	Mon Jun 29 19:21:11 2020 -0500
@@ -10,6 +10,7 @@
   loop:
     - "uwsgi"
     - "uwsgi-plugin-python3"
+    - "python3-pygments"
   notify: restart uwsgi
 
 - name: configure hgweb
--- a/mercurial/web/templates/hgweb.config.j2	Mon Jun 29 18:59:24 2020 -0500
+++ b/mercurial/web/templates/hgweb.config.j2	Mon Jun 29 19:21:11 2020 -0500
@@ -4,3 +4,8 @@
 [web]
 deny_push = *
 allow_archive = gz bz2 zip
+encoding = UTF-8
+style = gitweb
+
+[extensions]
+hgext.highlight =
--- a/mercurial/web/templates/hgweb.wsgi.j2	Mon Jun 29 18:59:24 2020 -0500
+++ b/mercurial/web/templates/hgweb.wsgi.j2	Mon Jun 29 19:21:11 2020 -0500
@@ -9,7 +9,7 @@
 #import sys; sys.path.insert(0, "/path/to/python/lib")
 
 # Uncomment to send python tracebacks to the browser if an error occurs:
-import cgitb; cgitb.enable()
+#import cgitb; cgitb.enable()
 
 # enable demandloading to reduce startup time
 from mercurial import demandimport; demandimport.enable()