tests/test-pull-http.t
changeset 17466 d5a3bda6e170
parent 16913 f2719b387380
child 17565 f62ed3d90377
equal deleted inserted replaced
17465:2d4a096e213c 17466:d5a3bda6e170
    26   updating to branch default
    26   updating to branch default
    27   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    27   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    28   $ cat test3/.hg/hgrc
    28   $ cat test3/.hg/hgrc
    29   [paths]
    29   [paths]
    30   default = http://foo@localhost:$HGPORT/
    30   default = http://foo@localhost:$HGPORT/
    31   $ "$TESTDIR/killdaemons.py"
    31   $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
    32 
    32 
    33 expect error, cloning not allowed
    33 expect error, cloning not allowed
    34 
    34 
    35   $ echo '[web]' > .hg/hgrc
    35   $ echo '[web]' > .hg/hgrc
    36   $ echo 'allowpull = false' >> .hg/hgrc
    36   $ echo 'allowpull = false' >> .hg/hgrc
    38   $ cat hg.pid >> $DAEMON_PIDS
    38   $ cat hg.pid >> $DAEMON_PIDS
    39   $ hg clone http://localhost:$HGPORT/ test4
    39   $ hg clone http://localhost:$HGPORT/ test4
    40   requesting all changes
    40   requesting all changes
    41   abort: authorization failed
    41   abort: authorization failed
    42   [255]
    42   [255]
    43   $ "$TESTDIR/killdaemons.py"
    43   $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
    44 
    44 
    45 serve errors
    45 serve errors
    46 
    46 
    47   $ cat errors.log
    47   $ cat errors.log
    48   $ req() {
    48   $ req() {