tests/test-static-http
changeset 12156 4c94b6d0fb1c
parent 11066 26abd91d9e84
equal deleted inserted replaced
12155:94ad12aa0530 12156:4c94b6d0fb1c
    27 mkdir remote
    27 mkdir remote
    28 cd remote
    28 cd remote
    29 hg init
    29 hg init
    30 echo foo > bar
    30 echo foo > bar
    31 hg add bar
    31 hg add bar
    32 hg commit -m"test" -d "1000000 0"
    32 hg commit -m"test"
    33 hg tip
    33 hg tip
    34 
    34 
    35 cd ..
    35 cd ..
    36 
    36 
    37 hg clone static-http://localhost:$HGPORT/remote local | sed -e "s,:$HGPORT/,:\$HGPORT/,"
    37 hg clone static-http://localhost:$HGPORT/remote local | sed -e "s,:$HGPORT/,:\$HGPORT/,"
    40 hg verify
    40 hg verify
    41 cat bar
    41 cat bar
    42 
    42 
    43 cd ../remote
    43 cd ../remote
    44 echo baz > quux
    44 echo baz > quux
    45 hg commit -A -mtest2 -d '100000000 0'
    45 hg commit -A -mtest2
    46 # check for HTTP opener failures when cachefile does not exist
    46 # check for HTTP opener failures when cachefile does not exist
    47 rm .hg/*.cache
    47 rm .hg/*.cache
    48 
    48 
    49 cd ../local
    49 cd ../local
    50 echo '[hooks]' >> .hg/hgrc
    50 echo '[hooks]' >> .hg/hgrc
    52 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
    52 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
    53 
    53 
    54 echo '% trying to push'
    54 echo '% trying to push'
    55 hg update
    55 hg update
    56 echo more foo >> bar
    56 echo more foo >> bar
    57 hg commit -m"test" -d "100000000 0"
    57 hg commit -m"test"
    58 hg push | sed -e "s,:$HGPORT/,:\$HGPORT/,"
    58 hg push | sed -e "s,:$HGPORT/,:\$HGPORT/,"
    59 
    59 
    60 echo '% trying clone -r'
    60 echo '% trying clone -r'
    61 cd ..
    61 cd ..
    62 hg clone -r donotexist static-http://localhost:$HGPORT/remote local0 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
    62 hg clone -r donotexist static-http://localhost:$HGPORT/remote local0 | sed -e "s,:$HGPORT/,:\$HGPORT/,"