Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 11309:ef7636efeb01
ui: handle leading newlines/spaces/commas in configlist
Thanks to Greg Ward for spotting the problem introduced in 0a548640e012
and for supplying the test case.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 08 Jun 2010 21:09:41 +0200 |
parents | e1dde7363601 |
children | fcd06ecd4cb7 |
line wrap: on
line diff
--- a/mercurial/ui.py Tue Jun 08 11:58:09 2010 -0500 +++ b/mercurial/ui.py Tue Jun 08 21:09:41 2010 +0200 @@ -228,7 +228,7 @@ if result is None: result = default or [] if isinstance(result, basestring): - result = _configlist(result) + result = _configlist(result.lstrip(' ,\n')) if result is None: result = default or [] return result