test-hgrc
27 lines
| 639 B
| text/plain
|
TextLexer
/ tests / test-hgrc
|
r1473 | #!/bin/sh | ||
|
r10043 | echo "invalid" > $HGRCPATH | ||
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" | ||||
echo "" > $HGRCPATH | ||||
|
r7044 | |||
|
r10043 | # issue1199: escaping | ||
|
r7044 | hg init "foo%bar" | ||
hg clone "foo%bar" foobar | ||||
p=`pwd` | ||||
cd foobar | ||||
|
r10043 | cat .hg/hgrc | sed -e "s:$p:...:" | ||
hg paths | sed -e "s:$p:...:" | ||||
hg showconfig | sed -e "s:$p:...:" | ||||
cd .. | ||||
|
r9470 | |||
# issue1829: wrong indentation | ||||
|
r10043 | echo '[foo]' > $HGRCPATH | ||
|
r9470 | echo ' x = y' >> $HGRCPATH | ||
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" | ||||
|
r10042 | |||
|
r10295 | python -c "print '[foo]\nbar = a\n b\n c \n de\n fg \nbaz = bif cb \n'" \ | ||
> $HGRCPATH | ||||
hg showconfig foo | ||||
|
r10042 | echo '%include /no-such-file' > $HGRCPATH | ||
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" | ||||