comparison contrib/check-code.py @ 20471:ea005e754c9c

tests: lines with largefile .* file://$TESTTMP also match on windows on windows, largefile paths are written as "file:///C:/temp/...", corresponding to "file:///$TESTTMP/..." (all three slashes shown). But on posix systems they are written as "file:///tmp/..." corresponding to "file://$TESTTMP/..." (only two slashes shown). Write the glob "file:/*/" to match both versions.
author Simon Heimberg <simohe@besonet.ch>
date Mon, 27 Jan 2014 21:39:25 +0100
parents ada289dfceb0
children f1a3ae7c15df
comparison
equal deleted inserted replaced
20470:78f4c2b7052f 20471:ea005e754c9c
163 (r'^ pushing to \$TESTTMP/.*[^)]$', winglobmsg), 163 (r'^ pushing to \$TESTTMP/.*[^)]$', winglobmsg),
164 (r'^ pushing subrepo \S+/\S+ to.*[^)]$', winglobmsg), 164 (r'^ pushing subrepo \S+/\S+ to.*[^)]$', winglobmsg),
165 (r'^ moving \S+/.*[^)]$', winglobmsg), 165 (r'^ moving \S+/.*[^)]$', winglobmsg),
166 (r'^ no changes made to subrepo since.*/.*[^)]$', winglobmsg), 166 (r'^ no changes made to subrepo since.*/.*[^)]$', winglobmsg),
167 (r'^ .*: largefile \S+ not available from file:.*/.*[^)]$', winglobmsg), 167 (r'^ .*: largefile \S+ not available from file:.*/.*[^)]$', winglobmsg),
168 (r'^ .*file://\$TESTTMP',
169 'write "file:/*/$TESTTMP" + (glob) to match on windows too'),
168 ], 170 ],
169 # warnings 171 # warnings
170 [ 172 [
171 (r'^ [^*?/\n]* \(glob\)$', 173 (r'^ [^*?/\n]* \(glob\)$',
172 "glob match with no glob character (?*/)"), 174 "glob match with no glob character (?*/)"),