test-hgrc
49 lines
| 1.2 KiB
| 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 | |||
Matt Mackall
|
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
|
r10042 | echo '%include /no-such-file' > $HGRCPATH | ||
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" | ||||
Brodie Rao
|
r10455 | |||
# HGPLAIN | ||||
cd .. | ||||
p=`pwd` | ||||
echo "[ui]" > $HGRCPATH | ||||
echo "debug=true" >> $HGRCPATH | ||||
echo "fallbackencoding=ASCII" >> $HGRCPATH | ||||
echo "quiet=true" >> $HGRCPATH | ||||
Brodie Rao
|
r10507 | echo "slash=true" >> $HGRCPATH | ||
Brodie Rao
|
r10455 | echo "traceback=true" >> $HGRCPATH | ||
echo "verbose=true" >> $HGRCPATH | ||||
echo "[defaults]" >> $HGRCPATH | ||||
echo "identify=-n" >> $HGRCPATH | ||||
Brodie Rao
|
r10506 | echo "[alias]" >> $HGRCPATH | ||
echo "log=log -g" >> $HGRCPATH | ||||
Brodie Rao
|
r10455 | |||
echo '% customized hgrc' | ||||
hg showconfig | sed -e "s:$p:...:" | ||||
echo '% plain hgrc' | ||||
HGPLAIN=; export HGPLAIN | ||||
hg showconfig --config ui.traceback=True --debug | sed -e "s:$p:...:" | ||||