[PATCH 3 of 5] check-config: escape period in regexp for inline comments

timeless timeless at mozdev.org
Tue Dec 8 03:35:16 CST 2015


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1449563760 0
#      Tue Dec 08 08:36:00 2015 +0000
# Node ID 7f2a4607333500cb5bb0d749ce6b1c9c161948bb
# Parent  fbbe3a0bbfb764a9aa7da7ea09203aef9580b585
check-config: escape period in regexp for inline comments

diff --git a/contrib/check-config.py b/contrib/check-config.py
--- a/contrib/check-config.py
+++ b/contrib/check-config.py
@@ -62,7 +62,7 @@
 
             # look for ignore markers
             m = re.search(r'# (?:internal|experimental|deprecated|developer)'
-                          ' config: (\S+.\S+)$', l)
+                          ' config: (\S+\.\S+)$', l)
             if m:
                 documented[m.group(1)] = 1
 


More information about the Mercurial-devel mailing list