config: undo change of empty line definition
authorMatt Mackall <mpm@selenic.com>
Fri, 17 Jun 2011 15:36:56 -0500
changeset 14659 4392594746f6
parent 14658 7ddf9a607b75
child 14660 d29d31e0fdc3
config: undo change of empty line definition We don't allow spaces in front of comment markers
mercurial/config.py
--- a/mercurial/config.py	Fri Jun 17 20:33:02 2011 +0200
+++ b/mercurial/config.py	Fri Jun 17 15:36:56 2011 -0500
@@ -74,7 +74,7 @@
         sectionre = re.compile(r'\[([^\[]+)\]')
         itemre = re.compile(r'([^=\s][^=]*?)\s*=\s*(.*\S|)')
         contre = re.compile(r'\s+(\S|\S.*\S)\s*$')
-        emptyre = re.compile(r'\s*(;|#|\s*$)')
+        emptyre = re.compile(r'(;|#|\s*$)')
         commentre = re.compile(r'(;|#)')
         unsetre = re.compile(r'%unset\s+(\S+)')
         includere = re.compile(r'%include\s+(\S|\S.*\S)\s*$')