# HG changeset patch # User Luke Hoersten # Date 1593476471 18000 # Node ID baca37fdc8c3105c3515d6aeb1ac60d610386674 # Parent 628402a01a59b1b7b2bab71d8b75120d53a92e99 Updated hgweb config diff -r 628402a01a59 -r baca37fdc8c3 mercurial/web/tasks/main.yaml --- 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 diff -r 628402a01a59 -r baca37fdc8c3 mercurial/web/templates/hgweb.config.j2 --- 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 = diff -r 628402a01a59 -r baca37fdc8c3 mercurial/web/templates/hgweb.wsgi.j2 --- 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()