tests/test-http
branchstable
changeset 10154 d4a62b6d4a58
parent 9506 49b62395e910
child 10398 ace3cf2bc991
equal deleted inserted replaced
10147:27838bd9acf5 10154:d4a62b6d4a58
    17 hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ':20060':/"
    17 hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ':20060':/"
    18 cd ..
    18 cd ..
    19 cat hg1.pid hg2.pid >> $DAEMON_PIDS
    19 cat hg1.pid hg2.pid >> $DAEMON_PIDS
    20 
    20 
    21 echo % clone via stream
    21 echo % clone via stream
    22 http_proxy= hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | \
    22 hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | \
    23   sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/'
    23   sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/'
    24 hg verify -R copy
    24 hg verify -R copy
    25 
    25 
    26 echo % try to clone via stream, should use pull instead
    26 echo % try to clone via stream, should use pull instead
    27 http_proxy= hg clone --uncompressed http://localhost:$HGPORT1/ copy2
    27 hg clone --uncompressed http://localhost:$HGPORT1/ copy2
    28 
    28 
    29 echo % clone via pull
    29 echo % clone via pull
    30 http_proxy= hg clone http://localhost:$HGPORT1/ copy-pull
    30 hg clone http://localhost:$HGPORT1/ copy-pull
    31 hg verify -R copy-pull
    31 hg verify -R copy-pull
    32 
    32 
    33 cd test
    33 cd test
    34 echo bar > bar
    34 echo bar > bar
    35 hg commit -A -d '1 0' -m 2
    35 hg commit -A -d '1 0' -m 2