diff -r 68b7ceda99d7 -r c8f212cb0c83 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Fri Jul 07 00:13:53 2017 -0700 +++ b/mercurial/hgweb/hgwebdir_mod.py Mon Jul 03 13:04:35 2017 +0200 @@ -404,7 +404,7 @@ except Exception as e: u.warn(_('error reading %s/.hg/hgrc: %s\n') % (path, e)) continue - def get(section, name, default=None): + def get(section, name, default=uimod._unset): return u.config(section, name, default, untrusted=True) if u.configbool("web", "hidden", untrusted=True):