changeset 34237:131f8cd2c2b4

configitems: register the 'web.descend' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:45:42 +0200
parents 9becd05476b8
children a6c18628dff1
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:41 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:45:42 2017 +0200
@@ -612,6 +612,9 @@
 coreconfigitem('web', 'deny_read',
     default=list,
 )
+coreconfigitem('web', 'descend',
+    default=True,
+)
 coreconfigitem('worker', 'backgroundclose',
     default=dynamicdefault,
 )
--- a/mercurial/hgweb/hgwebdir_mod.py	Fri Jun 30 03:45:41 2017 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Fri Jun 30 03:45:42 2017 +0200
@@ -324,7 +324,7 @@
 
         def rawentries(subdir="", **map):
 
-            descend = self.ui.configbool('web', 'descend', True)
+            descend = self.ui.configbool('web', 'descend')
             collapse = self.ui.configbool('web', 'collapse')
             seenrepos = set()
             seendirs = set()