Show More
@@ -0,0 +1,39 b'' | |||||
|
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" |
@@ -0,0 +1,28 b'' | |||||
|
1 | adding a | |||
|
2 | adding b | |||
|
3 | [mq]: b.patch | |||
|
4 | a | |||
|
5 | b.patch | |||
|
6 | 200 Script output follows | |||
|
7 | ||||
|
8 | ||||
|
9 | /a/ | |||
|
10 | /a/.hg/patches/ | |||
|
11 | ||||
|
12 | requesting all changes | |||
|
13 | adding changesets | |||
|
14 | adding manifests | |||
|
15 | adding file changes | |||
|
16 | added 2 changesets with 2 changes to 2 files | |||
|
17 | requesting all changes | |||
|
18 | adding changesets | |||
|
19 | adding manifests | |||
|
20 | adding file changes | |||
|
21 | added 1 changesets with 3 changes to 3 files | |||
|
22 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
23 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
24 | a | |||
|
25 | applying b.patch | |||
|
26 | Now at: b.patch | |||
|
27 | imported patch b.patch | |||
|
28 | a |
General Comments 0
You need to be logged in to leave comments.
Login now