# HG changeset patch # User Boris Feld # Date 1498787138 -7200 # Node ID f6d25ffc8b7f8892b29830185950e676cce31d87 # Parent 25b24a3e5a9ecf76e27f131412a9d8729881bc3e configitems: register the 'web.collapse' config diff -r 25b24a3e5a9e -r f6d25ffc8b7f mercurial/configitems.py --- 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, ) diff -r 25b24a3e5a9e -r f6d25ffc8b7f mercurial/hgweb/hgwebdir_mod.py --- 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: