##// END OF EJS Templates
color: add win32 support for non-black background...
color: add win32 support for non-black background This complicates the code a bit, since attributes need to be masked together correctly before they are applied. Perhaps the code should be redesigned at some point, but this works well for now.

File last commit:

r11225:d6dbd5e4 default
r12277:a7d3147b stable
Show More
test-hgrc
76 lines | 1.7 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
Chad Dombrova
config: expand hgrc %include paths
r11224 FAKEPATH=/path/to/nowhere
export FAKEPATH
echo '%include $FAKEPATH/no-such-file' > $HGRCPATH
Martin Geisler
config: raise ConfigError on non-existing include files...
r10042 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
Chad Dombrova
config: expand hgrc %include paths
r11224 unset FAKEPATH
Brodie Rao
ui: add HGPLAIN environment variable for easier scripting...
r10455
Chad Dombrova
ui.username(): expand environment variables in username configuration value....
r11225 echo "% username expansion"
olduser=$HGUSER
unset HGUSER
FAKEUSER='John Doe'
export FAKEUSER
echo '[ui]' > $HGRCPATH
echo 'username = $FAKEUSER' >> $HGRCPATH
hg init usertest
cd usertest
touch bar
hg commit --addremove --quiet -m "added bar"
hg log --template "{author}\n"
cd ..
hg showconfig | sed -e "s:$p:...:"
unset FAKEUSER
HGUSER=$olduser
export HGUSER
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
Yuya Nishihara
ui: ignore ui.logtemplate and ui.style when HGPLAIN is set...
r10567 echo "style=~/.hgstyle" >> $HGRCPATH
echo "logtemplate={node}" >> $HGRCPATH
Brodie Rao
ui: add HGPLAIN environment variable for easier scripting...
r10455 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:...:"