Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/contrib/check-code.py Tue Feb 11 16:30:23 2014 -0800 +++ b/contrib/check-code.py Mon Jan 27 21:39:25 2014 +0100 @@ -165,6 +165,8 @@ (r'^ moving \S+/.*[^)]$', winglobmsg), (r'^ no changes made to subrepo since.*/.*[^)]$', winglobmsg), (r'^ .*: largefile \S+ not available from file:.*/.*[^)]$', winglobmsg), + (r'^ .*file://\$TESTTMP', + 'write "file:/*/$TESTTMP" + (glob) to match on windows too'), ], # warnings [