comparison tests/test-mq-qclone-http @ 7525:6a49fa7674c1

hgweb: mq repos should be in non-recursive collections, too
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 19 Dec 2008 18:24:49 +0100
parents 7fc19b12cb6b
children 400ffd5f2f14
comparison
equal deleted inserted replaced
7524:7fc19b12cb6b 7525:6a49fa7674c1
20 20
21 root=`pwd` 21 root=`pwd`
22 22
23 cd .. 23 cd ..
24 24
25 echo % test with recursive collection
26
25 cat > collections.conf <<EOF 27 cat > collections.conf <<EOF
26 [paths] 28 [paths]
27 /=$root/** 29 /=$root/**
28 EOF 30 EOF
29 31
36 hg qclone http://localhost:$HGPORT/a b 38 hg qclone http://localhost:$HGPORT/a b
37 hg --cwd b log --template "{desc}\n" 39 hg --cwd b log --template "{desc}\n"
38 hg --cwd b qpush -a 40 hg --cwd b qpush -a
39 hg --cwd b log --template "{desc}\n" 41 hg --cwd b log --template "{desc}\n"
40 42
43 echo % test with normal collection
44
41 cat > collections1.conf <<EOF 45 cat > collections1.conf <<EOF
42 [paths] 46 [paths]
43 /=$root/* 47 /=$root/*
44 EOF 48 EOF
45 49
51 55
52 hg qclone http://localhost:$HGPORT1/a c 56 hg qclone http://localhost:$HGPORT1/a c
53 hg --cwd c log --template "{desc}\n" 57 hg --cwd c log --template "{desc}\n"
54 hg --cwd c qpush -a 58 hg --cwd c qpush -a
55 hg --cwd c log --template "{desc}\n" 59 hg --cwd c log --template "{desc}\n"
60
61 echo % test with old-style collection
62
63 cat > collections2.conf <<EOF
64 [collections]
65 $root=$root
66 EOF
67
68 hg serve -p $HGPORT2 -d --pid-file=hg.pid --webdir-conf collections2.conf \
69 -A access-paths.log -E error-paths-1.log
70 cat hg.pid >> $DAEMON_PIDS
71
72 "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/?style=raw'
73
74 hg qclone http://localhost:$HGPORT2/a d
75 hg --cwd d log --template "{desc}\n"
76 hg --cwd d qpush -a
77 hg --cwd d log --template "{desc}\n"