Mercurial > hg
view tests/test-hgrc @ 10140:5d868e0565f6
test-help: improve test coverage
Adds a test for help on a command with no options.
Extends test coverage of commands.help_ by 2 lines.
author | Henri Wiechers <hwiechers@gmail.com> |
---|---|
date | Thu, 24 Dec 2009 18:53:35 +0200 |
parents | dc5462d94a72 |
children | cade47dcac2d |
line wrap: on
line source
#!/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|" echo '%include /no-such-file' > $HGRCPATH hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"