web: use '_unset' default value for proxy config method
authorBoris Feld <boris.feld@octobus.net>
Fri, 15 Sep 2017 19:21:08 +0200
changeset 34226 cf08aaaea7f0
parent 34225 d43340bec0f5
child 34227 ac96ff471c9a
web: use '_unset' default value for proxy config method This special value is needed to make sure registered default value are taken in account.
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)