[PATCH 4 of 4] code-check: warn about line glob match with no glob character (?*/)

Simon Heimberg simohe at besonet.ch
Tue Feb 12 17:05:33 CST 2013


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1350059530 -7200
# Node ID dca96b2ac9e1f536f69a9be658d9f4c72f6c6de0
# Parent  a36b0c19bec9b4d43ab250b091fbddb614d75374
code-check: warn about line glob match with no glob character (?*/)

diff -r a36b0c19bec9 -r dca96b2ac9e1 contrib/check-code.py
--- a/contrib/check-code.py	Mon Okt 15 23:32:28 2012 +0200
+++ b/contrib/check-code.py	Fre Okt 12 18:32:10 2012 +0200
@@ -105,7 +105,10 @@
      "use (glob) to match Windows paths too"),
   ],
   # warnings
-  []
+  [
+    (r'^  [^*?/\n]* \(glob\)$',
+     "warning: glob match with no glob character (?*/)"),
+  ]
 ]
 
 for i in [0, 1]:


More information about the Mercurial-devel mailing list