diff contrib/check-code.py @ 15389:3bece03bf3c6 stable

tests: use md5sum.py instead of sha1sum, add check
author Matt Mackall <mpm@selenic.com>
date Mon, 31 Oct 2011 14:22:11 -0500
parents 695ac6aca77f
children 1470f8b00694 fab28a577a38
line wrap: on
line diff
--- a/contrib/check-code.py	Mon Oct 31 00:42:32 2011 +0900
+++ b/contrib/check-code.py	Mon Oct 31 14:22:11 2011 -0500
@@ -52,6 +52,7 @@
     (r'^diff.*-\w*N', "don't use 'diff -N'"),
     (r'(^| )wc[^|]*$\n(?!.*\(re\))', "filter wc output"),
     (r'head -c', "don't use 'head -c', use 'dd'"),
+    (r'sha1sum', "don't use sha1sum, use $TESTDIR/md5sum.py"),
     (r'ls.*-\w*R', "don't use 'ls -R', use 'find'"),
     (r'printf.*\\\d\d\d', "don't use 'printf \NNN', use Python"),
     (r'printf.*\\x', "don't use printf \\x, use Python"),