changeset 18832:a911e5dc2b00

check-code: extract windows glob warning message it will be used often
author Simon Heimberg <simohe@besonet.ch>
date Thu, 28 Feb 2013 23:45:51 +0100
parents 17f6644a2fbc
children b1a42a6087ca
files contrib/check-code.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Tue Mar 26 16:27:51 2013 -0700
+++ b/contrib/check-code.py	Thu Feb 28 23:45:51 2013 +0100
@@ -89,6 +89,7 @@
     (r"<<(\S+)((.|\n)*?\n\1)", rephere),
 ]
 
+winglobmsg = "use (glob) to match Windows paths too"
 uprefix = r"^  \$ "
 utestpats = [
   [
@@ -101,8 +102,7 @@
      "explicit exit code checks unnecessary"),
     (uprefix + r'set -e', "don't use set -e"),
     (uprefix + r'\s', "don't indent commands, use > for continued lines"),
-    (r'^  saved backup bundle to \$TESTTMP.*\.hg$',
-     "use (glob) to match Windows paths too"),
+    (r'^  saved backup bundle to \$TESTTMP.*\.hg$', winglobmsg),
   ],
   # warnings
   [