Show More
@@ -73,10 +73,10 b' class config(object):' | |||
|
73 | 73 | def parse(self, src, data, sections=None, remap=None, include=None): |
|
74 | 74 | sectionre = re.compile(r'\[([^\[]+)\]') |
|
75 | 75 | itemre = re.compile(r'([^=\s][^=]*?)\s*=\s*(.*\S|)') |
|
76 | contre = re.compile(r'\s+(\S.*\S)') | |
|
76 | contre = re.compile(r'\s+(\S|\S.*\S)\s*$') | |
|
77 | 77 | emptyre = re.compile(r'(;|#|\s*$)') |
|
78 | 78 | unsetre = re.compile(r'%unset\s+(\S+)') |
|
79 | includere = re.compile(r'%include\s+(\S.*\S)') | |
|
79 | includere = re.compile(r'%include\s+(\S|\S.*\S)\s*$') | |
|
80 | 80 | section = "" |
|
81 | 81 | item = None |
|
82 | 82 | line = 0 |
@@ -23,5 +23,9 b" echo '[foo]' >> $HGRCPATH" | |||
|
23 | 23 | echo ' x = y' >> $HGRCPATH |
|
24 | 24 | hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" |
|
25 | 25 | |
|
26 | python -c "print '[foo]\nbar = a\n b\n c \n de\n fg \nbaz = bif cb \n'" \ | |
|
27 | > $HGRCPATH | |
|
28 | hg showconfig foo | |
|
29 | ||
|
26 | 30 | echo '%include /no-such-file' > $HGRCPATH |
|
27 | 31 | hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" |
General Comments 0
You need to be logged in to leave comments.
Login now