Mercurial > public > mercurial-scm > hg
diff mercurial/config.py @ 8263:41031699550a
config: allow spaces in key portion of items
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 29 Apr 2009 20:47:30 -0500 |
parents | ddf3d6656e7c |
children | 52c5be55af82 |
line wrap: on
line diff
--- a/mercurial/config.py Wed Apr 29 20:47:28 2009 -0500 +++ b/mercurial/config.py Wed Apr 29 20:47:30 2009 -0500 @@ -71,7 +71,7 @@ def read(self, path, fp=None, sections=None): sectionre = re.compile(r'\[([^\[]+)\]') - itemre = re.compile(r'([^=\s]+)\s*=\s*(.*\S|)') + itemre = re.compile(r'([^=\s][^=]*?)\s*=\s*(.*\S|)') contre = re.compile(r'\s+(\S.*\S)') emptyre = re.compile(r'(;|#|\s*$)') unsetre = re.compile(r'%unset\s+(\S+)')