test-hgrc
23 lines
| 529 B
| text/plain
|
TextLexer
/ tests / test-hgrc
Benoit Boissinot
|
r1473 | #!/bin/sh | ||
Martin Geisler
|
r10043 | echo "invalid" > $HGRCPATH | ||
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" | ||||
echo "" > $HGRCPATH | ||||
Benoit Boissinot
|
r7044 | |||
Martin Geisler
|
r10043 | # issue1199: escaping | ||
Benoit Boissinot
|
r7044 | hg init "foo%bar" | ||
hg clone "foo%bar" foobar | ||||
p=`pwd` | ||||
cd foobar | ||||
Martin Geisler
|
r10043 | cat .hg/hgrc | sed -e "s:$p:...:" | ||
hg paths | sed -e "s:$p:...:" | ||||
hg showconfig | sed -e "s:$p:...:" | ||||
cd .. | ||||
Martin Geisler
|
r9470 | |||
# issue1829: wrong indentation | ||||
Martin Geisler
|
r10043 | echo '[foo]' > $HGRCPATH | ||
Martin Geisler
|
r9470 | echo ' x = y' >> $HGRCPATH | ||
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" | ||||
Martin Geisler
|
r10042 | |||
echo '%include /no-such-file' > $HGRCPATH | ||||
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" | ||||