diff mercurial/hgweb/webcommands.py @ 34238:a6c18628dff1

configitems: register the 'web.description' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:45:43 +0200
parents 08346a8fa65f
children db63872e10cc
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Jun 30 03:45:42 2017 +0200
+++ b/mercurial/hgweb/webcommands.py	Fri Jun 30 03:45:43 2017 +0200
@@ -719,8 +719,11 @@
     start = max(0, count - web.maxchanges)
     end = min(count, start + web.maxchanges)
 
+    desc = web.config("web", "description")
+    if not desc:
+        desc = 'unknown'
     return tmpl("summary",
-                desc=web.config("web", "description", "unknown"),
+                desc=desc,
                 owner=get_contact(web.config) or "unknown",
                 lastchange=tip.date(),
                 tags=tagentries,