tests/test-mq-qclone-http
changeset 7524 7fc19b12cb6b
parent 6205 b193a6e59131
child 7525 6a49fa7674c1
equal deleted inserted replaced
7523:e60aaae83323 7524:7fc19b12cb6b
    21 root=`pwd`
    21 root=`pwd`
    22 
    22 
    23 cd ..
    23 cd ..
    24 
    24 
    25 cat > collections.conf <<EOF
    25 cat > collections.conf <<EOF
    26 [collections]
    26 [paths]
    27 $root=$root
    27 /=$root/**
    28 EOF
    28 EOF
    29 
    29 
    30 hg serve -p $HGPORT -d --pid-file=hg.pid --webdir-conf collections.conf \
    30 hg serve -p $HGPORT -d --pid-file=hg.pid --webdir-conf collections.conf \
    31     -A access-paths.log -E error-paths-1.log
    31     -A access-paths.log -E error-paths-1.log
    32 cat hg.pid >> $DAEMON_PIDS
    32 cat hg.pid >> $DAEMON_PIDS
    35 
    35 
    36 hg qclone http://localhost:$HGPORT/a b
    36 hg qclone http://localhost:$HGPORT/a b
    37 hg --cwd b log --template "{desc}\n"
    37 hg --cwd b log --template "{desc}\n"
    38 hg --cwd b qpush -a
    38 hg --cwd b qpush -a
    39 hg --cwd b log --template "{desc}\n"
    39 hg --cwd b log --template "{desc}\n"
       
    40 
       
    41 cat > collections1.conf <<EOF
       
    42 [paths]
       
    43 /=$root/*
       
    44 EOF
       
    45 
       
    46 hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf collections1.conf \
       
    47     -A access-paths.log -E error-paths-1.log
       
    48 cat hg.pid >> $DAEMON_PIDS
       
    49 
       
    50 "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw'
       
    51 
       
    52 hg qclone http://localhost:$HGPORT1/a c
       
    53 hg --cwd c log --template "{desc}\n"
       
    54 hg --cwd c qpush -a
       
    55 hg --cwd c log --template "{desc}\n"