Mercurial > hg
changeset 27310:9c98fe1416c2
check-config: recognize convert style documentation
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 08 Dec 2015 09:22:53 +0000 |
parents | b0de270acd17 |
children | 24a1c24fad6e |
files | contrib/check-config.py tests/test-check-config-hg.t |
diffstat | 2 files changed, 5 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-config.py Tue Dec 08 04:56:26 2015 +0000 +++ b/contrib/check-config.py Tue Dec 08 09:22:53 2015 +0000 @@ -50,6 +50,11 @@ if m: documented[m.group(1)] = 1 + # like convert + m = re.match(r'^\s*:(\S+\.\S+):\s+', l) + if m: + documented[m.group(1)] = 1 + # quoted in help or docstrings m = re.match(r'.*?``([-a-z_]+\.[-a-z_]+)``', l) if m:
--- a/tests/test-check-config-hg.t Tue Dec 08 04:56:26 2015 +0000 +++ b/tests/test-check-config-hg.t Tue Dec 08 09:22:53 2015 +0000 @@ -6,22 +6,4 @@ $ hg files "set:(**.py or **.txt) - tests/**" | sed 's|\\|/|g' | > xargs python contrib/check-config.py - undocumented: convert.cvsps.cache (bool) [True] - undocumented: convert.cvsps.fuzz (str) [60] - undocumented: convert.cvsps.mergefrom (str) - undocumented: convert.cvsps.mergeto (str) - undocumented: convert.git.remoteprefix (str) ['remote'] - undocumented: convert.git.similarity (int) [50] - undocumented: convert.hg.clonebranches (bool) - undocumented: convert.hg.ignoreerrors (bool) - undocumented: convert.hg.revs (str) - undocumented: convert.hg.saverev (bool) - undocumented: convert.hg.sourcename (str) - undocumented: convert.hg.startrev (str) - undocumented: convert.hg.tagsbranch (str) ['default'] - undocumented: convert.hg.usebranchnames (bool) [True] - undocumented: convert.localtimezone (bool) - undocumented: convert.p4.startrev (str) - undocumented: convert.skiptags (bool) undocumented: convert.svn.debugsvnlog (bool) [True] - undocumented: convert.svn.startrev (str)