changeset 14659:4392594746f6

config: undo change of empty line definition We don't allow spaces in front of comment markers
author Matt Mackall <mpm@selenic.com>
date Fri, 17 Jun 2011 15:36:56 -0500
parents 7ddf9a607b75
children d29d31e0fdc3
files mercurial/config.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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*$')