changeset 25849:d1cb185b9ee2

check-config: don't continue prematurely The early check for section headers like ^``foo`` was missing actual options like ^``foo.bar``.
author Matt Mackall <mpm@selenic.com>
date Sat, 18 Jul 2015 14:16:07 -0500
parents 0ae07173881d
children b130764e3eb5
files contrib/check-config.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-config.py	Thu Jun 25 17:57:26 2015 -0500
+++ b/contrib/check-config.py	Sat Jul 18 14:16:07 2015 -0500
@@ -27,11 +27,9 @@
             m = re.match('\s*``(\S+)``', l)
             if m:
                 prevname = m.group(1)
-                continue
             if re.match('^\s*-+$', l):
                 sect = prevname
                 prevname = ''
-                continue
 
             if sect and prevname:
                 name = sect + '.' + prevname