##// END OF EJS Templates
test-revert.t: fix wc check-code false positive
Matt Mackall -
r23134:22e76e37 default
parent child Browse files
Show More
@@ -94,7 +94,7 testpats = [
94 (r'sed.*-i', "don't use 'sed -i', use a temporary file"),
94 (r'sed.*-i', "don't use 'sed -i', use a temporary file"),
95 (r'\becho\b.*\\n', "don't use 'echo \\n', use printf"),
95 (r'\becho\b.*\\n', "don't use 'echo \\n', use printf"),
96 (r'echo -n', "don't use 'echo -n', use printf"),
96 (r'echo -n', "don't use 'echo -n', use printf"),
97 (r'(^| )\bwc\b[^|]*$\n(?!.*\(re\))', "filter wc output"),
97 (r'(^|\|\s*)\bwc\b[^|]*$\n(?!.*\(re\))', "filter wc output"),
98 (r'head -c', "don't use 'head -c', use 'dd'"),
98 (r'head -c', "don't use 'head -c', use 'dd'"),
99 (r'tail -n', "don't use the '-n' option to tail, just use '-<num>'"),
99 (r'tail -n', "don't use the '-n' option to tail, just use '-<num>'"),
100 (r'sha1sum', "don't use sha1sum, use $TESTDIR/md5sum.py"),
100 (r'sha1sum', "don't use sha1sum, use $TESTDIR/md5sum.py"),
@@ -733,7 +733,7 Create parent changeset
733
733
734 Setup working directory
734 Setup working directory
735
735
736 $ python ../gen-revert-cases.py wc | cat
736 $ python ../gen-revert-cases.py wc
737 $ hg addremove --similarity 0
737 $ hg addremove --similarity 0
738 removing added_removed
738 removing added_removed
739 removing added_revert
739 removing added_revert
General Comments 0
You need to be logged in to leave comments. Login now