tests/test-init
changeset 4166 c0271aba6abe
parent 3713 8ae88ed2a3b6
child 4297 27590c19ad30
equal deleted inserted replaced
4165:0d0f098e5d51 4166:c0271aba6abe
    20 echo Got arguments 1:$1 2:$2 3:$3 4:$4 5:$5 >> dummylog
    20 echo Got arguments 1:$1 2:$2 3:$3 4:$4 5:$5 >> dummylog
    21 $2
    21 $2
    22 EOF
    22 EOF
    23 chmod +x dummyssh
    23 chmod +x dummyssh
    24 
    24 
       
    25 checknewrepo()
       
    26 {
       
    27     name=$1
       
    28 
       
    29     if [ -d $name/.hg/store ]; then
       
    30 	echo store created
       
    31     fi
       
    32 
       
    33     if [ -f $name/.hg/00changelog.i ]; then
       
    34 	echo 00changelog.i created
       
    35     fi
       
    36 
       
    37     cat $name/.hg/requires
       
    38 }
       
    39 
    25 echo "# creating 'local'"
    40 echo "# creating 'local'"
    26 hg init local
    41 hg init local
       
    42 checknewrepo local
    27 echo this > local/foo
    43 echo this > local/foo
    28 hg ci --cwd local -A -m "init" -d "1000000 0"
    44 hg ci --cwd local -A -m "init" -d "1000000 0"
       
    45 
       
    46 echo "# creating repo with old format"
       
    47 hg --config format.usestore=false init old
       
    48 checknewrepo old
    29 
    49 
    30 echo "#test failure"
    50 echo "#test failure"
    31 hg init local
    51 hg init local
    32 
    52 
    33 echo "# init+push to remote2"
    53 echo "# init+push to remote2"