diff mercurial/hgweb/webutil.py @ 38215:f715faeaceee

config: rename allow_archive to allow-archive As part of ConfigConsolidationPlan [1], rename the option according to the new UI guidelines [2] and add an alias for backward compatibility. [1]: https://www.mercurial-scm.org/wiki/ConfigConsolidationPlan [2]: https://www.mercurial-scm.org/wiki/UIGuideline#adding_new_options
author David Demelier <markand@malikania.fr>
date Mon, 14 May 2018 12:38:05 +0200
parents 4c3ab15f3532
children 06d11cd90516
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Sat Apr 21 17:31:03 2018 +0900
+++ b/mercurial/hgweb/webutil.py	Mon May 14 12:38:05 2018 +0200
@@ -51,7 +51,7 @@
 ))
 
 def archivelist(ui, nodeid, url=None):
-    allowed = ui.configlist('web', 'allow_archive', untrusted=True)
+    allowed = ui.configlist('web', 'allow-archive', untrusted=True)
     archives = []
 
     for typ, spec in archivespecs.iteritems():