comparison tests/test-mq-qclone-http @ 6205:b193a6e59131

mq: test for qclone of http repo+queue tests f857eac30cd5 and 0c2b443fb3c3
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Mon, 03 Mar 2008 21:48:43 +0100
parents
children 7fc19b12cb6b
comparison
equal deleted inserted replaced
6204:f8a86ea7521b 6205:b193a6e59131
1 #! /bin/sh
2
3 echo "[extensions]" >> $HGRCPATH
4 echo "mq=" >> $HGRCPATH
5
6 mkdir webdir
7 cd webdir
8
9 hg init a
10 hg --cwd a qinit -c
11 echo a > a/a
12 hg --cwd a ci -A -m a
13 echo b > a/b
14 hg --cwd a addremove
15 hg --cwd a qnew -f b.patch
16 hg --cwd a qcommit -m b.patch
17
18 hg --cwd a log --template "{desc}\n"
19 hg --cwd a/.hg/patches log --template "{desc}\n"
20
21 root=`pwd`
22
23 cd ..
24
25 cat > collections.conf <<EOF
26 [collections]
27 $root=$root
28 EOF
29
30 hg serve -p $HGPORT -d --pid-file=hg.pid --webdir-conf collections.conf \
31 -A access-paths.log -E error-paths-1.log
32 cat hg.pid >> $DAEMON_PIDS
33
34 "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?style=raw'
35
36 hg qclone http://localhost:$HGPORT/a b
37 hg --cwd b log --template "{desc}\n"
38 hg --cwd b qpush -a
39 hg --cwd b log --template "{desc}\n"