tests/test-incoming-outgoing
changeset 5384 e3a0c092b4e2
parent 3988 9dcf9d45cab8
equal deleted inserted replaced
5383:7cdc896fdcd5 5384:e3a0c092b4e2
     6 for i in 0 1 2 3 4 5 6 7 8; do
     6 for i in 0 1 2 3 4 5 6 7 8; do
     7 	echo $i >> foo
     7 	echo $i >> foo
     8 	hg commit -A -m $i -d "1000000 0"
     8 	hg commit -A -m $i -d "1000000 0"
     9 done
     9 done
    10 hg verify
    10 hg verify
    11 hg serve -p 20059 -d --pid-file=hg.pid
    11 hg serve -p $HGPORT -d --pid-file=hg.pid
    12 cat hg.pid >> $DAEMON_PIDS
    12 cat hg.pid >> $DAEMON_PIDS
    13 cd ..
    13 cd ..
    14 
    14 
    15 hg init new
    15 hg init new
    16 # http incoming
    16 # http incoming
    17 http_proxy= hg -R new incoming http://localhost:20059/
    17 http_proxy= hg -R new incoming http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
    18 http_proxy= hg -R new incoming -r 4 http://localhost:20059/
    18 http_proxy= hg -R new incoming -r 4 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
    19 # local incoming
    19 # local incoming
    20 hg -R new incoming test
    20 hg -R new incoming test
    21 hg -R new incoming -r 4 test
    21 hg -R new incoming -r 4 test
    22 
    22 
    23 # test with --bundle
    23 # test with --bundle
    24 http_proxy= hg -R new incoming --bundle test.hg http://localhost:20059/
    24 http_proxy= hg -R new incoming --bundle test.hg http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
    25 hg -R new incoming --bundle test2.hg test
    25 hg -R new incoming --bundle test2.hg test
    26 
    26 
    27 # test the resulting bundles
    27 # test the resulting bundles
    28 hg init temp
    28 hg init temp
    29 hg init temp2
    29 hg init temp2
    42 	hg commit -A -m $i -d "1000000 0"
    42 	hg commit -A -m $i -d "1000000 0"
    43 done
    43 done
    44 hg verify
    44 hg verify
    45 cd ..
    45 cd ..
    46 hg -R test-dev outgoing test
    46 hg -R test-dev outgoing test
    47 http_proxy= hg -R test-dev outgoing http://localhost:20059/
    47 http_proxy= hg -R test-dev outgoing http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'
    48 http_proxy= hg -R test-dev outgoing -r 11 http://localhost:20059/
    48 http_proxy= hg -R test-dev outgoing -r 11 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,'