hgmo: set `web.allow-archive` to empty (Bug 1596135) r=glob
authorConnor Sheehan <sheehan@mozilla.com>
Wed, 13 Nov 2019 16:57:38 +0000
changeset 7306 c6a2bfdfd866a59912f0a115eb8c7354c4b1c84e
parent 7305 880c69dbd89fb1d8e1868f79bfb819e3e14294c2
child 7307 68d46e49009862d40cf96b9de37ff646d5116e30
push id3611
push usercosheehan@mozilla.com
push dateWed, 13 Nov 2019 16:57:48 +0000
treeherderversion-control-tools@c6a2bfdfd866 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
hgmo: set `web.allow-archive` to empty (Bug 1596135) r=glob As described in the bug, this command is causing load problems on the public hgweb interface. Since we have `xz` archives available for download elsewhere, and any archive can still be built from a clone of the repo using `hg archive`, this commit disables the webcommand to archive the repo server-side. We do this by setting the `web.allow-archive` config to an empty value (ie no archives allowed). This disables the webcommand on the server side and also removes the various links on the web interfaces pointing at URLs for the webcommand. Differential Revision: https://phabricator.services.mozilla.com/D52878
--- a/ansible/roles/hg-web/templates/hgrc.j2
+++ b/ansible/roles/hg-web/templates/hgrc.j2
@@ -13,17 +13,17 @@ hg.mozilla.org:fingerprints = sha256:17:
 sorthooks = True
 precommit.prevent_changes = python:mozhghooks.prevent_hgweb_changes.precommit
 pretxnchangegroup.prevent_changes = python:mozhghooks.prevent_hgweb_changes.pretxnchangegroup
 logourl = https://developer.mozilla.org/en/docs/Mercurial
 logoimg = moz-logo-bw-rgb.svg
 style = gitweb_mozilla
-allow_archive = bz2 gz zip
+allow-archive =
 templates = /repo_local/mozilla/hg_templates/
 encoding = UTF-8
 baseurl = https://hg.mozilla.org/
 staticurl = /static/{{ vct_node | mandatory }}/
 maxchanges = 20
 guessmime = True
 # bugzilla.mo is for l10n tool.