Mercurial > public > mercurial-scm > hg-stable
diff tests/test-extension @ 5523:5db730475d6d
tests/*: avoid losing the original settings from $HGRCPATH
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 09 Nov 2007 20:21:35 -0200 |
parents | 93b7e2fa7ee3 |
children | 7da76778dbd7 |
line wrap: on
line diff
--- a/tests/test-extension Fri Nov 09 20:21:35 2007 -0200 +++ b/tests/test-extension Fri Nov 09 20:21:35 2007 -0200 @@ -47,12 +47,13 @@ hg clone a b hg bar +echo 'foobar = !' >> $HGRCPATH echo '% module/__init__.py-style' -echo '[extensions]' > $HGRCPATH echo "barfoo = $barfoopath" >> $HGRCPATH cd a hg foo +echo 'barfoo = !' >> $HGRCPATH cd .. cat > empty.py <<EOF @@ -61,9 +62,9 @@ cmdtable = {} EOF emptypath=`pwd`/empty.py -echo '[extensions]' > $HGRCPATH echo "empty = $emptypath" >> $HGRCPATH hg help empty +echo 'empty = !' >> $HGRCPATH cat > debugextension.py <<EOF '''only debugcommands @@ -75,7 +76,7 @@ cmdtable = {"debugfoobar": (debugfoobar, (), "hg debugfoobar")} EOF debugpath=`pwd`/debugextension.py -echo '[extensions]' > $HGRCPATH echo "debugextension = $debugpath" >> $HGRCPATH hg help debugextension hg --debug help debugextension +echo 'debugextension = !' >> $HGRCPATH