##// END OF EJS Templates
tests: conditionalize test-stream-bundle-v2 for Windows
Matt Harbison -
r37228:77f9e95f default
parent child Browse files
Show More
@@ -1,166 +1,170 b''
1 1 Test creating a consuming stream bundle v2
2 2
3 3 $ getmainid() {
4 4 > hg -R main log --template '{node}\n' --rev "$1"
5 5 > }
6 6
7 7 $ cp $HGRCPATH $TESTTMP/hgrc.orig
8 8
9 9 $ cat >> $HGRCPATH << EOF
10 10 > [experimental]
11 11 > evolution.createmarkers=True
12 12 > evolution.exchange=True
13 13 > bundle2-output-capture=True
14 14 > [ui]
15 15 > ssh="$PYTHON" "$TESTDIR/dummyssh"
16 16 > logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline}
17 17 > [web]
18 18 > push_ssl = false
19 19 > allow_push = *
20 20 > [phases]
21 21 > publish=False
22 22 > [extensions]
23 23 > drawdag=$TESTDIR/drawdag.py
24 24 > clonebundles=
25 25 > EOF
26 26
27 27 The extension requires a repo (currently unused)
28 28
29 29 $ hg init main
30 30 $ cd main
31 31
32 32 $ hg debugdrawdag <<'EOF'
33 33 > E
34 34 > |
35 35 > D
36 36 > |
37 37 > C
38 38 > |
39 39 > B
40 40 > |
41 41 > A
42 42 > EOF
43 43
44 44 $ hg bundle -a --type="none-v2;stream=v2" bundle.hg
45 45 $ hg debugbundle bundle.hg
46 46 Stream params: {}
47 47 stream2 -- {bytecount: 1693, filecount: 11, requirements: dotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Cstore}
48 48 $ hg debugbundle --spec bundle.hg
49 49 none-v2;stream=v2;requirements%3Ddotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Cstore
50 50
51 51 Test that we can apply the bundle as a stream clone bundle
52 52
53 53 $ cat > .hg/clonebundles.manifest << EOF
54 54 > http://localhost:$HGPORT1/bundle.hg BUNDLESPEC=`hg debugbundle --spec bundle.hg`
55 55 > EOF
56 56
57 57 $ hg serve -d -p $HGPORT --pid-file hg.pid --accesslog access.log
58 58 $ cat hg.pid >> $DAEMON_PIDS
59 59
60 60 $ "$PYTHON" $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid
61 61 $ cat http.pid >> $DAEMON_PIDS
62 62
63 63 $ cd ..
64 64 $ hg clone http://localhost:$HGPORT streamv2-clone-implicit --debug
65 65 using http://localhost:$HGPORT/
66 66 sending capabilities command
67 67 sending clonebundles command
68 68 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
69 69 bundle2-input-bundle: with-transaction
70 70 bundle2-input-part: "stream2" (params: 3 mandatory) supported
71 71 applying stream bundle
72 72 11 files to transfer, 1.65 KB of data
73 starting 4 threads for background file closing (?)
74 starting 4 threads for background file closing (?)
73 75 adding [s] data/A.i (66 bytes)
74 76 adding [s] data/B.i (66 bytes)
75 77 adding [s] data/C.i (66 bytes)
76 78 adding [s] data/D.i (66 bytes)
77 79 adding [s] data/E.i (66 bytes)
78 80 adding [s] 00manifest.i (584 bytes)
79 81 adding [s] 00changelog.i (595 bytes)
80 82 adding [s] phaseroots (43 bytes)
81 83 adding [c] branch2-served (94 bytes)
82 84 adding [c] rbc-names-v1 (7 bytes)
83 85 adding [c] rbc-revs-v1 (40 bytes)
84 86 transferred 1.65 KB in \d\.\d seconds \(.*/sec\) (re)
85 87 bundle2-input-part: total payload size 1840
86 88 bundle2-input-bundle: 0 parts total
87 89 finished applying clone bundle
88 90 query 1; heads
89 91 sending batch command
90 92 searching for changes
91 93 all remote heads known locally
92 94 no changes found
93 95 sending getbundle command
94 96 bundle2-input-bundle: with-transaction
95 97 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
96 98 bundle2-input-part: "phase-heads" supported
97 99 bundle2-input-part: total payload size 24
98 100 bundle2-input-bundle: 1 parts total
99 101 checking for updated bookmarks
100 102 updating to branch default
101 103 resolving manifests
102 104 branchmerge: False, force: False, partial: False
103 105 ancestor: 000000000000, local: 000000000000+, remote: 9bc730a19041
104 106 A: remote created -> g
105 107 getting A
106 108 B: remote created -> g
107 109 getting B
108 110 C: remote created -> g
109 111 getting C
110 112 D: remote created -> g
111 113 getting D
112 114 E: remote created -> g
113 115 getting E
114 116 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
115 117
116 118 $ hg clone --stream http://localhost:$HGPORT streamv2-clone-explicit --debug
117 119 using http://localhost:$HGPORT/
118 120 sending capabilities command
119 121 sending clonebundles command
120 122 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
121 123 bundle2-input-bundle: with-transaction
122 124 bundle2-input-part: "stream2" (params: 3 mandatory) supported
123 125 applying stream bundle
124 126 11 files to transfer, 1.65 KB of data
127 starting 4 threads for background file closing (?)
128 starting 4 threads for background file closing (?)
125 129 adding [s] data/A.i (66 bytes)
126 130 adding [s] data/B.i (66 bytes)
127 131 adding [s] data/C.i (66 bytes)
128 132 adding [s] data/D.i (66 bytes)
129 133 adding [s] data/E.i (66 bytes)
130 134 adding [s] 00manifest.i (584 bytes)
131 135 adding [s] 00changelog.i (595 bytes)
132 136 adding [s] phaseroots (43 bytes)
133 137 adding [c] branch2-served (94 bytes)
134 138 adding [c] rbc-names-v1 (7 bytes)
135 139 adding [c] rbc-revs-v1 (40 bytes)
136 140 transferred 1.65 KB in *.* seconds (*/sec) (glob)
137 141 bundle2-input-part: total payload size 1840
138 142 bundle2-input-bundle: 0 parts total
139 143 finished applying clone bundle
140 144 query 1; heads
141 145 sending batch command
142 146 searching for changes
143 147 all remote heads known locally
144 148 no changes found
145 149 sending getbundle command
146 150 bundle2-input-bundle: with-transaction
147 151 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
148 152 bundle2-input-part: "phase-heads" supported
149 153 bundle2-input-part: total payload size 24
150 154 bundle2-input-bundle: 1 parts total
151 155 checking for updated bookmarks
152 156 updating to branch default
153 157 resolving manifests
154 158 branchmerge: False, force: False, partial: False
155 159 ancestor: 000000000000, local: 000000000000+, remote: 9bc730a19041
156 160 A: remote created -> g
157 161 getting A
158 162 B: remote created -> g
159 163 getting B
160 164 C: remote created -> g
161 165 getting C
162 166 D: remote created -> g
163 167 getting D
164 168 E: remote created -> g
165 169 getting E
166 170 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now