Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 34233:cf08aaaea7f0
web: use '_unset' default value for proxy config method
This special value is needed to make sure registered default value are taken in
account.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 15 Sep 2017 19:21:08 +0200 |
parents | 0fa781320203 |
children | f6d25ffc8b7f |
line wrap: on
line diff
--- 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)