Mercurial > public > mercurial-scm > hg
comparison contrib/check-code.py @ 18834:1a4a939a6b90
check-code: re-add check for missing glob
As suggested by mpm reintroducing this test failure on windows is
prevented by a code-check. One line in a unix test is ignored.
This pattern matches 20 windows glob lines.
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Fri, 01 Mar 2013 00:59:22 +0100 |
parents | b1a42a6087ca |
children | 4e7498a586e8 |
comparison
equal
deleted
inserted
replaced
18833:b1a42a6087ca | 18834:1a4a939a6b90 |
---|---|
102 "explicit exit code checks unnecessary"), | 102 "explicit exit code checks unnecessary"), |
103 (uprefix + r'set -e', "don't use set -e"), | 103 (uprefix + r'set -e', "don't use set -e"), |
104 (uprefix + r'\s', "don't indent commands, use > for continued lines"), | 104 (uprefix + r'\s', "don't indent commands, use > for continued lines"), |
105 (r'^ saved backup bundle to \$TESTTMP.*\.hg$', winglobmsg), | 105 (r'^ saved backup bundle to \$TESTTMP.*\.hg$', winglobmsg), |
106 (r'^ changeset .* references (corrupted|missing) \$TESTTMP/.*[^)]$', winglobmsg), | 106 (r'^ changeset .* references (corrupted|missing) \$TESTTMP/.*[^)]$', winglobmsg), |
107 (r'^ pulling from \$TESTTMP/.*[^)]$', winglobmsg, '\$TESTTMP/unix-repo$'), | |
107 ], | 108 ], |
108 # warnings | 109 # warnings |
109 [ | 110 [ |
110 (r'^ [^*?/\n]* \(glob\)$', | 111 (r'^ [^*?/\n]* \(glob\)$', |
111 "warning: glob match with no glob character (?*/)"), | 112 "warning: glob match with no glob character (?*/)"), |