Mercurial > hg
comparison contrib/check-code.py @ 18575:667063b22a69
check-code: warn to use killdaemons instead of kill `cat PIDFILE`
We have a bunch of tests that still use
kill `cat hg.pid`
or worse,
kill `cat hg.pid`; while kill -0 `cat hg.pid`; sleep 0; done
Cleaning these up to use tests/killdaemons.py is non-trivial, so for now
we just add a warning.
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Fri, 08 Feb 2013 19:32:56 +0000 |
parents | 813b7a1f7036 |
children | a343eccd5ee2 |
comparison
equal
deleted
inserted
replaced
18574:4db9e31ae605 | 18575:667063b22a69 |
---|---|
78 [ | 78 [ |
79 (r'^function', "don't use 'function', use old style"), | 79 (r'^function', "don't use 'function', use old style"), |
80 (r'^diff.*-\w*N', "don't use 'diff -N'"), | 80 (r'^diff.*-\w*N', "don't use 'diff -N'"), |
81 (r'\$PWD|\${PWD}', "don't use $PWD, use `pwd`"), | 81 (r'\$PWD|\${PWD}', "don't use $PWD, use `pwd`"), |
82 (r'^([^"\'\n]|("[^"\n]*")|(\'[^\'\n]*\'))*\^', "^ must be quoted"), | 82 (r'^([^"\'\n]|("[^"\n]*")|(\'[^\'\n]*\'))*\^', "^ must be quoted"), |
83 (r'kill (`|\$\()', "don't use kill, use killdaemons.py") | |
83 ] | 84 ] |
84 ] | 85 ] |
85 | 86 |
86 testfilters = [ | 87 testfilters = [ |
87 (r"( *)(#([^\n]*\S)?)", repcomment), | 88 (r"( *)(#([^\n]*\S)?)", repcomment), |