##// END OF EJS Templates
merge with default
merge with default

File last commit:

r10507:79dd9677 stable
r10543:dd352616 merge stable
Show More
test-hgrc
49 lines | 1.2 KiB | 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|"
Brodie Rao
ui: add HGPLAIN environment variable for easier scripting...
r10455
# HGPLAIN
cd ..
p=`pwd`
echo "[ui]" > $HGRCPATH
echo "debug=true" >> $HGRCPATH
echo "fallbackencoding=ASCII" >> $HGRCPATH
echo "quiet=true" >> $HGRCPATH
Brodie Rao
ui: unset ui.slash when HGPLAIN is set
r10507 echo "slash=true" >> $HGRCPATH
Brodie Rao
ui: add HGPLAIN environment variable for easier scripting...
r10455 echo "traceback=true" >> $HGRCPATH
echo "verbose=true" >> $HGRCPATH
echo "[defaults]" >> $HGRCPATH
echo "identify=-n" >> $HGRCPATH
Brodie Rao
ui: suppress aliases when HGPLAIN is set
r10506 echo "[alias]" >> $HGRCPATH
echo "log=log -g" >> $HGRCPATH
Brodie Rao
ui: add HGPLAIN environment variable for easier scripting...
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:...:"