check-config: don't continue prematurely
authorMatt Mackall <mpm@selenic.com>
Sat, 18 Jul 2015 14:16:07 -0500
changeset 25849 d1cb185b9ee2
parent 25848 0ae07173881d
child 25850 b130764e3eb5
check-config: don't continue prematurely The early check for section headers like ^``foo`` was missing actual options like ^``foo.bar``.
contrib/check-config.py
--- 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