##// END OF EJS Templates
test-hgrc: cleanup...
test-hgrc: cleanup - don't create a repository for no reason. - empty $HGRCPATH for better isolation between tests

File last commit:

r10043:e95f0f70 default
r10043:e95f0f70 default
Show More
test-hgrc
20 lines | 435 B | text/plain | TextLexer
#!/bin/sh
echo "invalid" > $HGRCPATH
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
echo "" > $HGRCPATH
# issue1199: escaping
hg init "foo%bar"
hg clone "foo%bar" foobar
p=`pwd`
cd foobar
cat .hg/hgrc | sed -e "s:$p:...:"
hg paths | sed -e "s:$p:...:"
hg showconfig | sed -e "s:$p:...:"
cd ..
# issue1829: wrong indentation
echo '[foo]' > $HGRCPATH
echo ' x = y' >> $HGRCPATH
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"