Patchwork [09,of,23] configitems: register the 'web.collapse' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 16, 2017, 6:28 p.m.
Message ID <a32df78859db33ff2c10.1505586496@FB>
Download mbox | patch
Permalink /patch/23960/
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 1498787138 -7200
#      ven. juin 30 03:45:38 2017 +0200
# Node ID a32df78859db33ff2c10d7dbafe9e0d37feaf742
# Parent  000c9c4ab549073fb4574b726d17bcb3b696de05
# EXP-Topic config.register.web
configitems: register the 'web.collapse' config

Patch

diff -r 000c9c4ab549 -r a32df78859db mercurial/configitems.py
--- a/mercurial/configitems.py	ven. juin 30 03:45:37 2017 +0200
+++ b/mercurial/configitems.py	ven. juin 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 000c9c4ab549 -r a32df78859db mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py	ven. juin 30 03:45:37 2017 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	ven. juin 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: