comparison contrib/check-code.py @ 13519:43b3b761d9d1

tests: don't overwrite HGRCPATH Overwriting instead of appending to the file removes the [defaults] section put into the file by run-tests.py. It also defeats the --inotify option to run-tests.py. (Nothing was broken yet, but the lack of -d "0 0" cause changeset hashes to change unexpectedly in a test case I was editing.)
author Martin Geisler <mg@aragost.com>
date Tue, 01 Mar 2011 17:01:17 +0100
parents 14f3795a5ed7
children 7ac93ec49c2d
comparison
equal deleted inserted replaced
13518:c39e9cead0ae 13519:43b3b761d9d1
64 (r'export.*=', "don't export and assign at once"), 64 (r'export.*=', "don't export and assign at once"),
65 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"), 65 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
66 (r'^source\b', "don't use 'source', use '.'"), 66 (r'^source\b', "don't use 'source', use '.'"),
67 (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"), 67 (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
68 (r'ls\s+[^|-]+\s+-', "options to 'ls' must come before filenames"), 68 (r'ls\s+[^|-]+\s+-', "options to 'ls' must come before filenames"),
69 (r'cat > \$HGRCPATH <<EOF', "append to $HGRCPATH, do not overwrite it"),
69 ] 70 ]
70 71
71 testfilters = [ 72 testfilters = [
72 (r"( *)(#([^\n]*\S)?)", repcomment), 73 (r"( *)(#([^\n]*\S)?)", repcomment),
73 (r"<<(\S+)((.|\n)*?\n\1)", rephere), 74 (r"<<(\S+)((.|\n)*?\n\1)", rephere),