diff 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
line wrap: on
line diff
--- a/contrib/check-code.py	Wed Mar 02 13:24:48 2011 +0100
+++ b/contrib/check-code.py	Tue Mar 01 17:01:17 2011 +0100
@@ -66,6 +66,7 @@
     (r'^source\b', "don't use 'source', use '.'"),
     (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
     (r'ls\s+[^|-]+\s+-', "options to 'ls' must come before filenames"),
+    (r'cat > \$HGRCPATH <<EOF', "append to $HGRCPATH, do not overwrite it"),
 ]
 
 testfilters = [