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 |
@@ -154,7 +154,7 b' def copies(repo, c1, c2, ca, checkdirs=F' | |||
|
154 | 154 | break # no merge needed, quit early |
|
155 | 155 | c2 = ctx(of, m2[of]) |
|
156 | 156 | cr = related(oc, c2, ca.rev()) |
|
157 |
if |
|
|
157 | if cr and (cr.path() == f or cr.path == c2.path()): # non-divergent | |
|
158 | 158 | copy[f] = of |
|
159 | 159 | of = None |
|
160 | 160 | break |
@@ -19,5 +19,9 b" echo '[foo]' > $HGRCPATH" | |||
|
19 | 19 | echo ' x = y' >> $HGRCPATH |
|
20 | 20 | hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" |
|
21 | 21 | |
|
22 | python -c "print '[foo]\nbar = a\n b\n c \n de\n fg \nbaz = bif cb \n'" \ | |
|
23 | > $HGRCPATH | |
|
24 | hg showconfig foo | |
|
25 | ||
|
22 | 26 | echo '%include /no-such-file' > $HGRCPATH |
|
23 | 27 | hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" |
General Comments 0
You need to be logged in to leave comments.
Login now