# HG changeset patch # User Boris Feld # Date 1507685804 -7200 # Node ID b50c036494dc73ed324ac17ed2981582d2505964 # Parent c364f3f7363493b663f350d8c5040b5b870beaed configitems: register the 'web.motd' config diff -r c364f3f73634 -r b50c036494dc mercurial/configitems.py --- a/mercurial/configitems.py Wed Oct 11 03:32:59 2017 +0200 +++ b/mercurial/configitems.py Wed Oct 11 03:36:44 2017 +0200 @@ -730,6 +730,9 @@ coreconfigitem('web', 'ipv6', default=False, ) +coreconfigitem('web', 'motd', + default='', +) coreconfigitem('web', 'name', default=dynamicdefault, ) diff -r c364f3f73634 -r b50c036494dc mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Wed Oct 11 03:32:59 2017 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Wed Oct 11 03:36:44 2017 +0200 @@ -177,7 +177,7 @@ # 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 -r c364f3f73634 -r b50c036494dc mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Wed Oct 11 03:32:59 2017 +0200 +++ b/mercurial/hgweb/hgwebdir_mod.py Wed Oct 11 03:36:44 2017 +0200 @@ -491,7 +491,7 @@ 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)