# HG changeset patch # User Boris Feld # Date 2017-10-11 01:18:04 # Node ID bf2389b1f15e36a49321894000ca3864dbe9d4a3 # Parent 19b2c062654c10d51e34a515971059813d68d0f7 configitems: register the 'web.view' config diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -748,6 +748,9 @@ coreconfigitem('web', 'style', coreconfigitem('web', 'templates', default=None, ) +coreconfigitem('web', 'view', + default='served', +) coreconfigitem('worker', 'backgroundclose', default=dynamicdefault, ) diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -482,8 +482,8 @@ def getwebview(repo): The option has been around undocumented since Mercurial 2.5, but no user ever asked about it. So we better keep it undocumented for now.""" - viewconfig = repo.ui.config('web', 'view', 'served', - untrusted=True) + # experimental config: web.view + viewconfig = repo.ui.config('web', 'view', untrusted=True) if viewconfig == 'all': return repo.unfiltered() elif viewconfig in repoview.filtertable: