tests/test-serve.t
branchstable
changeset 16297 1791d7662d32
parent 15446 c5c9ca3719f9
child 16364 f64b25f147d7
equal deleted inserted replaced
16296:4343d5226149 16297:1791d7662d32
     7   >              -e "s/:$HGPORT2\\([^0-9]\\)/:HGPORT2\1/g" \
     7   >              -e "s/:$HGPORT2\\([^0-9]\\)/:HGPORT2\1/g" \
     8   >              -e 's/http:\/\/[^/]*\//http:\/\/localhost\//'
     8   >              -e 's/http:\/\/[^/]*\//http:\/\/localhost\//'
     9   >    cat hg.pid >> "$DAEMON_PIDS"
     9   >    cat hg.pid >> "$DAEMON_PIDS"
    10   >    echo % errors
    10   >    echo % errors
    11   >    cat errors.log
    11   >    cat errors.log
    12   >    sleep 1
       
    13   >    if [ "$KILLQUIETLY" = "Y" ]; then
    12   >    if [ "$KILLQUIETLY" = "Y" ]; then
    14   >        kill `cat hg.pid` 2>/dev/null
    13   >        kill `cat hg.pid` 2>/dev/null
    15   >    else
    14   >    else
    16   >        kill `cat hg.pid`
    15   >        kill `cat hg.pid`
    17   >    fi
    16   >    fi
    18   >    sleep 1
    17   >    while kill -0 `cat hg.pid` 2>/dev/null; do true; done
    19   > }
    18   > }
    20 
    19 
    21   $ hg init test
    20   $ hg init test
    22   $ cd test
    21   $ cd test
    23   $ echo '[web]' > .hg/hgrc
    22   $ echo '[web]' > .hg/hgrc