# HG changeset patch # User Simon Heimberg # Date 2013-02-28 22:45:51 # Node ID a911e5dc2b0052466fbfc89b127c1f8e0ef65b96 # Parent 17f6644a2fbca63c37880ffbd8bc43e05a14837f check-code: extract windows glob warning message it will be used often diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -89,6 +89,7 @@ testfilters = [ (r"<<(\S+)((.|\n)*?\n\1)", rephere), ] +winglobmsg = "use (glob) to match Windows paths too" uprefix = r"^ \$ " utestpats = [ [ @@ -101,8 +102,7 @@ utestpats = [ "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 [