diff mercurial/hgweb/webcommands.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 2aa0217bb655
children 5faaa31a6082
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Sat Apr 21 17:31:03 2018 +0900
+++ b/mercurial/hgweb/webcommands.py	Mon May 14 12:38:05 2018 +0200
@@ -1162,7 +1162,7 @@
     """
 
     type_ = web.req.qsparams.get('type')
-    allowed = web.configlist("web", "allow_archive")
+    allowed = web.configlist("web", "allow-archive")
     key = web.req.qsparams['node']
 
     if type_ not in webutil.archivespecs: