comparison tests/test-largefiles-wireproto.t @ 29068:305f9c36a0f5

largefiles: makes verify batching stat calls to remote Instead of sending stat calls for each files separately, it sends one batch call with stat invocations for all files.
author liscju <piotr.listkiewicz@gmail.com>
date Tue, 03 May 2016 23:48:31 +0200
parents e01bd7385f4f
children fd288d118074
comparison
equal deleted inserted replaced
29067:207c0db08953 29068:305f9c36a0f5
304 $ rm -rf empty http-clone* 304 $ rm -rf empty http-clone*
305 305
306 used all HGPORTs, kill all daemons 306 used all HGPORTs, kill all daemons
307 $ killdaemons.py 307 $ killdaemons.py
308 308
309 largefiles should batch verify remote calls
310
311 $ hg init batchverifymain
312 $ cd batchverifymain
313 $ echo "aaa" >> a
314 $ hg add --large a
315 $ hg commit -m "a"
316 Invoking status precommit hook
317 A a
318 $ echo "bbb" >> b
319 $ hg add --large b
320 $ hg commit -m "b"
321 Invoking status precommit hook
322 A b
323 $ cd ..
324 $ hg serve -R batchverifymain -d -p $HGPORT --pid-file hg.pid \
325 > -A access.log
326 $ cat hg.pid >> $DAEMON_PIDS
327 $ hg clone http://localhost:$HGPORT batchverifyclone
328 requesting all changes
329 adding changesets
330 adding manifests
331 adding file changes
332 added 2 changesets with 2 changes to 2 files
333 updating to branch default
334 getting changed largefiles
335 2 largefiles updated, 0 removed
336 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
337 $ hg -R batchverifyclone verify --large
338 checking changesets
339 checking manifests
340 crosschecking files in changesets and manifests
341 checking files
342 2 files, 2 changesets, 2 total revisions
343 searching 1 changesets for largefiles
344 verified existence of 2 revisions of 2 largefiles
345 $ tail -1 access.log
346 127.0.0.1 - - [*] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=statlfile+sha%3D972a1a11f19934401291cc99117ec614933374ce%3Bstatlfile+sha%3Dc801c9cfe94400963fcb683246217d5db77f9a9a (glob)
347 $ rm access.log
348
349 $ killdaemons.py
350
309 #endif 351 #endif