# HG changeset patch # User Boris Feld <boris.f...@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
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() _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel