Patchwork [12,of,23] configitems: register the 'web.descend' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 16, 2017, 6:28 p.m.
Message ID <b62bd50736bf55e36d16.1505586499@FB>
Download mbox | patch
Permalink /patch/23964/
State Accepted
Headers show

Comments

Boris Feld - Sept. 16, 2017, 6:28 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498787142 -7200
#      ven. juin 30 03:45:42 2017 +0200
# Node ID b62bd50736bf55e36d167ff2a00f24ac27c61fd5
# Parent  856c2a20b761aa54386a5af77b72e0555e730c44
# EXP-Topic config.register.web
configitems: register the 'web.descend' config

Patch

diff -r 856c2a20b761 -r b62bd50736bf mercurial/configitems.py
--- a/mercurial/configitems.py	ven. juin 30 03:45:41 2017 +0200
+++ b/mercurial/configitems.py	ven. juin 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,
 )
diff -r 856c2a20b761 -r b62bd50736bf mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py	ven. juin 30 03:45:41 2017 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	ven. juin 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()