tests/test-schemes
changeset 12486 95b4af4eaa06
parent 12485 8fdc11fec6ae
child 12487 9792013e2f53
equal deleted inserted replaced
12485:8fdc11fec6ae 12486:95b4af4eaa06
     1 #!/bin/sh
       
     2 
       
     3 cat <<EOF >> $HGRCPATH
       
     4 [extensions]
       
     5 schemes=
       
     6 
       
     7 [schemes]
       
     8 l = http://localhost:$HGPORT/
       
     9 parts = http://{1}:$HGPORT/
       
    10 z = file:\$PWD/
       
    11 EOF
       
    12 
       
    13 hg init test
       
    14 cd test
       
    15 echo a > a
       
    16 hg ci -Am initial
       
    17 
       
    18 hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
       
    19 cat hg.pid >> $DAEMON_PIDS
       
    20 
       
    21 hg incoming l://
       
    22 
       
    23 echo % check that {1} syntax works
       
    24 hg incoming --debug parts://localhost | sed 's/[0-9]//g'
       
    25 
       
    26 echo % check that paths are expanded
       
    27 PWD=`pwd` hg incoming z://
       
    28 
       
    29 echo % errors
       
    30 cat errors.log