Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 19031:341083b02d1b
check-code: add check for lock release order
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 17 Apr 2013 14:38:02 -0500 |
parents | 170fc0949fb6 |
children | 5e4491c114b2 |
line wrap: on
line diff
--- a/contrib/check-code.py Wed Apr 17 12:57:26 2013 -0500 +++ b/contrib/check-code.py Wed Apr 17 14:38:02 2013 -0500 @@ -224,6 +224,7 @@ (r':\n( )*( ){1,3}[^ ]', "must indent 4 spaces"), (r'ui\.(status|progress|write|note|warn)\([\'\"]x', "missing _() in ui message (use () to hide false-positives)"), + (r'release\(.*wlock, .*lock\)', "wrong lock release order"), ], # warnings [