diff contrib/check-code.py @ 10814:cd0c49bdbfd9

Merge with stable
author Matt Mackall <mpm@selenic.com>
date Thu, 01 Apr 2010 17:51:59 -0500
parents 62b8f15683f2 6e4cf8319f54
children 217557b26bc7
line wrap: on
line diff
--- a/contrib/check-code.py	Thu Apr 01 17:51:32 2010 -0500
+++ b/contrib/check-code.py	Thu Apr 01 17:51:59 2010 -0500
@@ -59,6 +59,7 @@
     (r'\$PWD', "don't use $PWD, use `pwd`"),
     (r'[^\n]\Z', "no trailing newline"),
     (r'export.*=', "don't export and assign at once"),
+    ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
 ]
 
 testfilters = [