##// END OF EJS Templates
Merge with stable
Matt Mackall -
r10296:cade47dc merge default
parent child Browse files
Show More
@@ -73,10 +73,10 b' class config(object):'
73 def parse(self, src, data, sections=None, remap=None, include=None):
73 def parse(self, src, data, sections=None, remap=None, include=None):
74 sectionre = re.compile(r'\[([^\[]+)\]')
74 sectionre = re.compile(r'\[([^\[]+)\]')
75 itemre = re.compile(r'([^=\s][^=]*?)\s*=\s*(.*\S|)')
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 emptyre = re.compile(r'(;|#|\s*$)')
77 emptyre = re.compile(r'(;|#|\s*$)')
78 unsetre = re.compile(r'%unset\s+(\S+)')
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 section = ""
80 section = ""
81 item = None
81 item = None
82 line = 0
82 line = 0
@@ -154,7 +154,7 b' def copies(repo, c1, c2, ca, checkdirs=F'
154 break # no merge needed, quit early
154 break # no merge needed, quit early
155 c2 = ctx(of, m2[of])
155 c2 = ctx(of, m2[of])
156 cr = related(oc, c2, ca.rev())
156 cr = related(oc, c2, ca.rev())
157 if of == f or of == c2.path(): # non-divergent
157 if cr and (cr.path() == f or cr.path == c2.path()): # non-divergent
158 copy[f] = of
158 copy[f] = of
159 of = None
159 of = None
160 break
160 break
@@ -19,5 +19,9 b" echo '[foo]' > $HGRCPATH"
19 echo ' x = y' >> $HGRCPATH
19 echo ' x = y' >> $HGRCPATH
20 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
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 echo '%include /no-such-file' > $HGRCPATH
26 echo '%include /no-such-file' > $HGRCPATH
23 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
27 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
@@ -7,4 +7,6 b' default = .../foo%bar'
7 bundle.mainreporoot=.../foobar
7 bundle.mainreporoot=.../foobar
8 paths.default=.../foo%bar
8 paths.default=.../foo%bar
9 hg: config error at $HGRCPATH:2: ' x = y'
9 hg: config error at $HGRCPATH:2: ' x = y'
10 foo.bar=a\nb\nc\nde\nfg
11 foo.baz=bif cb
10 hg: config error at $HGRCPATH:1: cannot include /no-such-file (No such file or directory)
12 hg: config error at $HGRCPATH:1: cannot include /no-such-file (No such file or directory)
General Comments 0
You need to be logged in to leave comments. Login now