comparison tests/test-hgrc @ 10042:7cdd2a7db2c2 stable

config: raise ConfigError on non-existing include files Before, an %include directive for a non-existing file resulted in an IOError and a traceback.
author Martin Geisler <mg@lazybytes.net>
date Sat, 12 Dec 2009 16:46:16 +0100
parents ba75830d17a9
children dc5462d94a72 44c923eeb81d
comparison
equal deleted inserted replaced
10025:fb45c1e4396f 10042:7cdd2a7db2c2
20 # issue1829: wrong indentation 20 # issue1829: wrong indentation
21 cd .. 21 cd ..
22 echo '[foo]' >> $HGRCPATH 22 echo '[foo]' >> $HGRCPATH
23 echo ' x = y' >> $HGRCPATH 23 echo ' x = y' >> $HGRCPATH
24 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" 24 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
25
26 echo '%include /no-such-file' > $HGRCPATH
27 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"