Mercurial > hg
comparison contrib/check-config.py @ 27310:9c98fe1416c2
check-config: recognize convert style documentation
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 08 Dec 2015 09:22:53 +0000 |
parents | d1cb185b9ee2 |
children | 24a1c24fad6e |
comparison
equal
deleted
inserted
replaced
27309:b0de270acd17 | 27310:9c98fe1416c2 |
---|---|
48 # like the bugzilla extension | 48 # like the bugzilla extension |
49 m = re.match(r'^\s*([a-z]+\.[a-z]+)$', l) | 49 m = re.match(r'^\s*([a-z]+\.[a-z]+)$', l) |
50 if m: | 50 if m: |
51 documented[m.group(1)] = 1 | 51 documented[m.group(1)] = 1 |
52 | 52 |
53 # like convert | |
54 m = re.match(r'^\s*:(\S+\.\S+):\s+', l) | |
55 if m: | |
56 documented[m.group(1)] = 1 | |
57 | |
53 # quoted in help or docstrings | 58 # quoted in help or docstrings |
54 m = re.match(r'.*?``([-a-z_]+\.[-a-z_]+)``', l) | 59 m = re.match(r'.*?``([-a-z_]+\.[-a-z_]+)``', l) |
55 if m: | 60 if m: |
56 documented[m.group(1)] = 1 | 61 documented[m.group(1)] = 1 |
57 | 62 |