diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -730,6 +730,9 @@ coreconfigitem('web', 'errorlog', coreconfigitem('web', 'ipv6', default=False, ) +coreconfigitem('web', 'motd', + default='', +) coreconfigitem('web', 'name', 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 @@ -177,7 +177,7 @@ class requestcontext(object): # some functions for the templater def motd(**map): - yield self.config('web', 'motd', '') + yield self.config('web', 'motd') # figure out which style to use diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -491,7 +491,7 @@ class hgwebdir(object): if self.motd is not None: yield self.motd else: - yield config('web', 'motd', '') + yield config('web', 'motd') def config(section, name, default=uimod._unset, untrusted=True): return self.ui.config(section, name, default, untrusted)