Mercurial > hg-stable
diff tests/test-init @ 4166:c0271aba6abe
small fixes for the parent patch
- format.usestore is a boolean option
- python wart: ("revlogv1") is a string, not a tuple
- only create a dummy changelog if we're using a store
- add a test
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 08 Mar 2007 20:08:24 -0300 |
parents | 8ae88ed2a3b6 |
children | 27590c19ad30 |
line wrap: on
line diff
--- a/tests/test-init Thu Mar 08 16:13:16 2007 -0600 +++ b/tests/test-init Thu Mar 08 20:08:24 2007 -0300 @@ -22,11 +22,31 @@ EOF chmod +x dummyssh +checknewrepo() +{ + name=$1 + + if [ -d $name/.hg/store ]; then + echo store created + fi + + if [ -f $name/.hg/00changelog.i ]; then + echo 00changelog.i created + fi + + cat $name/.hg/requires +} + echo "# creating 'local'" hg init local +checknewrepo local echo this > local/foo hg ci --cwd local -A -m "init" -d "1000000 0" +echo "# creating repo with old format" +hg --config format.usestore=false init old +checknewrepo old + echo "#test failure" hg init local