tests/test-pull-http.t
changeset 17565 f62ed3d90377
parent 17466 d5a3bda6e170
child 18851 a60963c02f92
equal deleted inserted replaced
17564:6d0efc802856 17565:f62ed3d90377
     1   $ "$TESTDIR/hghave" serve || exit 80
     1   $ "$TESTDIR/hghave" killdaemons || exit 80
     2 
     2 
     3   $ hg init test
     3   $ hg init test
     4   $ cd test
     4   $ cd test
     5   $ echo a > a
     5   $ echo a > a
     6   $ hg ci -Ama
     6   $ hg ci -Ama
    47   $ cat errors.log
    47   $ cat errors.log
    48   $ req() {
    48   $ req() {
    49   >     hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
    49   >     hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
    50   >     cat hg.pid >> $DAEMON_PIDS
    50   >     cat hg.pid >> $DAEMON_PIDS
    51   >     hg --cwd ../test pull http://localhost:$HGPORT/
    51   >     hg --cwd ../test pull http://localhost:$HGPORT/
    52   >     kill `cat hg.pid`
    52   >     "$TESTDIR/killdaemons.py" hg.pid
    53   >     echo % serve errors
    53   >     echo % serve errors
    54   >     cat errors.log
    54   >     cat errors.log
    55   > }
    55   > }
    56 
    56 
    57 expect error, pulling not allowed
    57 expect error, pulling not allowed