##// END OF EJS Templates
Merge with stable
Martin Geisler -
r10044:dc5462d9 merge default
parent child Browse files
Show More
@@ -100,7 +100,13 b' class config(object):'
100 base = os.path.dirname(src)
100 base = os.path.dirname(src)
101 inc = os.path.normpath(os.path.join(base, inc))
101 inc = os.path.normpath(os.path.join(base, inc))
102 if include:
102 if include:
103 include(inc, remap=remap, sections=sections)
103 try:
104 include(inc, remap=remap, sections=sections)
105 except IOError, inst:
106 msg = _("config error at %s:%d: "
107 "cannot include %s (%s)") \
108 % (src, line, inc, inst.strerror)
109 raise error.ConfigError(msg)
104 continue
110 continue
105 if emptyre.match(l):
111 if emptyre.match(l):
106 continue
112 continue
@@ -18,3 +18,6 b' cd ..'
18 echo '[foo]' > $HGRCPATH
18 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
22 echo '%include /no-such-file' > $HGRCPATH
23 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
@@ -7,3 +7,4 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 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