changeset 34241:f6d25ffc8b7f

configitems: register the 'web.collapse' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:45:38 +0200
parents 25b24a3e5a9e
children 147104631eac
files mercurial/configitems.py mercurial/hgweb/hgwebdir_mod.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/configitems.py	Fri Jun 30 03:45:37 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:45:38 2017 +0200
@@ -603,6 +603,9 @@
 coreconfigitem('web', 'certificate',
     default=None,
 )
+coreconfigitem('web', 'collapse',
+    default=False,
+)
 coreconfigitem('worker', 'backgroundclose',
     default=dynamicdefault,
 )
--- a/mercurial/hgweb/hgwebdir_mod.py	Fri Jun 30 03:45:37 2017 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Fri Jun 30 03:45:38 2017 +0200
@@ -325,7 +325,7 @@
         def rawentries(subdir="", **map):
 
             descend = self.ui.configbool('web', 'descend', True)
-            collapse = self.ui.configbool('web', 'collapse', False)
+            collapse = self.ui.configbool('web', 'collapse')
             seenrepos = set()
             seendirs = set()
             for name, path in self.repos: