##// END OF EJS Templates
Merge with stable
Merge with stable

File last commit:

r10296:cade47dc merge default
r10296:cade47dc merge default
Show More
test-hgrc
27 lines | 639 B | text/plain | TextLexer
Benoit Boissinot
make readconfig take a filename instead of a file pointer as argument...
r1473 #!/bin/sh
Martin Geisler
test-hgrc: cleanup...
r10043 echo "invalid" > $HGRCPATH
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
echo "" > $HGRCPATH
Benoit Boissinot
Escape '%' when writing to hgrc (issue1199)...
r7044
Martin Geisler
test-hgrc: cleanup...
r10043 # issue1199: escaping
Benoit Boissinot
Escape '%' when writing to hgrc (issue1199)...
r7044 hg init "foo%bar"
hg clone "foo%bar" foobar
p=`pwd`
cd foobar
Martin Geisler
test-hgrc: cleanup...
r10043 cat .hg/hgrc | sed -e "s:$p:...:"
hg paths | sed -e "s:$p:...:"
hg showconfig | sed -e "s:$p:...:"
cd ..
Martin Geisler
dispatch: catch ConfigError while constructing ui
r9470
# issue1829: wrong indentation
Martin Geisler
test-hgrc: cleanup...
r10043 echo '[foo]' > $HGRCPATH
Martin Geisler
dispatch: catch ConfigError while constructing ui
r9470 echo ' x = y' >> $HGRCPATH
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
Martin Geisler
config: raise ConfigError on non-existing include files...
r10042
Matt Mackall
config: handle short continuations (issue1999)...
r10295 python -c "print '[foo]\nbar = a\n b\n c \n de\n fg \nbaz = bif cb \n'" \
> $HGRCPATH
hg showconfig foo
Martin Geisler
config: raise ConfigError on non-existing include files...
r10042 echo '%include /no-such-file' > $HGRCPATH
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"