##// END OF EJS Templates
stream-clone-test: factor some piece of basic clone test out...
marmoute -
r52366:a72ab2ec default
parent child Browse files
Show More
@@ -179,6 +179,13 b' based clone with a warning.'
179 179 $ cd ..
180 180
181 181 Basic clone
182 -----------
183
184 Check that --stream trigger a stream clone and result in a valid repositoty
185
186 We check the associated output for exact bytes on file number as changes in
187 these value implies changes in the data transfered and can detect unintended
188 changes in the process.
182 189
183 190 #if stream-legacy
184 191 $ hg clone --stream -U http://localhost:$HGPORT clone1
@@ -189,7 +196,6 b' Basic clone'
189 196 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
190 197 searching for changes
191 198 no changes found
192 $ cat server/errors.txt
193 199 #endif
194 200 #if stream-bundle2-v2
195 201 $ hg clone --stream -U http://localhost:$HGPORT clone1
@@ -200,7 +206,18 b' Basic clone'
200 206 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd no-rust !)
201 207 1096 files to transfer, 99.0 KB of data (zstd rust !)
202 208 transferred 99.0 KB in * seconds (* */sec) (glob) (zstd rust !)
209 #endif
203 210
211 #if stream-bundle2-v3
212 $ hg clone --stream -U http://localhost:$HGPORT clone1
213 streaming all changes
214 1093 entries to transfer
215 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
216 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd no-rust !)
217 transferred 99.0 KB in * seconds (* */sec) (glob) (zstd rust !)
218 #endif
219
220 #if no-stream-legacy
204 221 $ ls -1 clone1/.hg/cache
205 222 branch2-base
206 223 branch2-immutable
@@ -212,29 +229,10 b' Basic clone'
212 229 rbc-revs-v1
213 230 tags2
214 231 tags2-served
215 $ cat server/errors.txt
216 232 #endif
217 #if stream-bundle2-v3
218 $ hg clone --stream -U http://localhost:$HGPORT clone1
219 streaming all changes
220 1093 entries to transfer
221 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
222 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd no-rust !)
223 transferred 99.0 KB in * seconds (* */sec) (glob) (zstd rust !)
224 233
225 $ ls -1 clone1/.hg/cache
226 branch2-base
227 branch2-immutable
228 branch2-served
229 branch2-served.hidden
230 branch2-visible
231 branch2-visible-hidden
232 rbc-names-v1
233 rbc-revs-v1
234 tags2
235 tags2-served
234 $ hg -R clone1 verify --quiet
236 235 $ cat server/errors.txt
237 #endif
238 236
239 237 getbundle requests with stream=1 are uncompressed
240 238
General Comments 0
You need to be logged in to leave comments. Login now