Mercurial > hg-stable
changeset 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 | 3d7b1d97230d |
children | 63ea850b3312 |
files | mercurial/config.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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+)')