# HG changeset patch # User Nicolas Dumazet # Date 2009-09-12 09:17:07 # Node ID 7f0f882af23d289fcca14be2be207773f2f23d50 # Parent 661bc51f09b7deb85388d7d52f19b3a338829a23 config: abort on indented non-continuation lines (issue1829) Previously, as soon as a continuation would be met, "cont" would stay forever set to True, but "item" was set back to "None". This caused the continuation code bits to run every time, until the next "self.get(section, item) + '\n'" which would crash. diff --git a/mercurial/config.py b/mercurial/config.py --- a/mercurial/config.py +++ b/mercurial/config.py @@ -93,6 +93,7 @@ class config(object): self.set(section, item, v, "%s:%d" % (src, line)) continue item = None + cont = False m = includere.match(l) if m: inc = m.group(1)