--- 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()