##// END OF EJS Templates
check-config: mention the file and line of the error...
Ryan McElroy -
r33571:e470f12d default
parent child Browse files
Show More
@@ -48,7 +48,9 b' def main(args):'
48 48 prevname = ''
49 49 confsect = ''
50 50 carryover = ''
51 linenum = 0
51 52 for l in open(f):
53 linenum += 1
52 54
53 55 # check topic-like bits
54 56 m = re.match('\s*``(\S+)``', l)
@@ -110,9 +112,10 b' def main(args):'
110 112 default = '<variable>'
111 113 if (name in foundopts and (ctype, default) != foundopts[name]
112 114 and name not in allowinconsistent):
113 print(l)
115 print(l.rstrip())
114 116 print("conflict on %s: %r != %r" % (name, (ctype, default),
115 117 foundopts[name]))
118 print("at %s:%d:" % (f, linenum))
116 119 foundopts[name] = (ctype, default)
117 120 carryover = ''
118 121 else:
@@ -32,8 +32,8 b' Sanity check check-config.py'
32 32
33 33 $ $PYTHON contrib/check-config.py < $TESTTMP/files
34 34 foo = ui.configint('ui', 'intdefault', default=42)
35
36 35 conflict on ui.intdefault: ('int', '42') != ('int', '1')
36 at $TESTTMP/testfile.py:12: (glob)
37 37 undocumented: ui.doesnotexist (str)
38 38 undocumented: ui.intdefault (int) [42]
39 39 undocumented: ui.intdefault2 (int) [42]
General Comments 0
You need to be logged in to leave comments. Login now