[PATCH] for Issue2313: leading spaces in hgrc lead to parse error
Daniel Kullmann
daniel.kullmann at gmx.de
Mon Jan 23 04:19:31 CST 2012
# HG changeset patch
# User daniel.kullmann
# Date 1327313882 -3600
# Node ID a02356ac6be08d6c3c83d2133cb1f08ec9d76abe
# Parent 878bc4a62a735a1624e9b69c672d5fb5074d4855
fixed issue 3213: leading spaces in hgrc lead to parse error
diff -r 878bc4a62a73 -r a02356ac6be0 mercurial/config.py
--- a/mercurial/config.py Thu Jan 19 14:31:05 2012 -0600
+++ b/mercurial/config.py Mon Jan 23 11:18:02 2012 +0100
@@ -127,6 +127,8 @@
continue
item = None
cont = False
+ else:
+ l = l.lstrip()
m = includere.match(l)
if m:
inc = util.expandpath(m.group(1))
More information about the Mercurial-devel
mailing list