# HG changeset patch # User Boris Feld # Date 1505496068 -7200 # Node ID cf08aaaea7f0ded9f43747e4865eae974ee837cc # Parent d43340bec0f52fbe5aa79cf9103f28cc947eb5d5 web: use '_unset' default value for proxy config method This special value is needed to make sure registered default value are taken in account. diff -r d43340bec0f5 -r cf08aaaea7f0 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Sat Sep 16 11:48:05 2017 -0400 +++ b/mercurial/hgweb/hgwebdir_mod.py Fri Sep 15 19:21:08 2017 +0200 @@ -491,7 +491,7 @@ else: yield config('web', 'motd', '') - def config(section, name, default=None, untrusted=True): + def config(section, name, default=uimod._unset, untrusted=True): return self.ui.config(section, name, default, untrusted) self.updatereqenv(req.env)