tests/test-revlog-delta-find.t
changeset 49783 e1953a34c110
parent 49767 bcae90c53def
child 50207 f35cf52acabd
equal deleted inserted replaced
49782:acdb9a15137c 49783:e1953a34c110
   294   DBG-DELTAS: MANIFESTLOG: * (glob)
   294   DBG-DELTAS: MANIFESTLOG: * (glob)
   295   DBG-DELTAS: MANIFESTLOG: * (glob)
   295   DBG-DELTAS: MANIFESTLOG: * (glob)
   296   DBG-DELTAS: FILELOG:my-file.txt: rev=3: delta-base=2 * (glob)
   296   DBG-DELTAS: FILELOG:my-file.txt: rev=3: delta-base=2 * (glob)
   297   DBG-DELTAS: FILELOG:my-file.txt: rev=4: delta-base=4 * (glob)
   297   DBG-DELTAS: FILELOG:my-file.txt: rev=4: delta-base=4 * (glob)
   298 
   298 
       
   299 Check that "forced" behavior do not challenge the delta, even if it is full.
       
   300 ---------------------------------------------------------------------------
       
   301 
       
   302 A full bundle should be accepted as full bundle without recomputation
       
   303 
       
   304   $ cp -ar local-pre-pull-full local-forced-full
       
   305   $ hg -R local-forced-full pull --quiet \
       
   306   > --config 'paths.default:delta-reuse-policy=forced'
       
   307   DBG-DELTAS: CHANGELOG: * (glob)
       
   308   DBG-DELTAS: CHANGELOG: * (glob)
       
   309   DBG-DELTAS: MANIFESTLOG: * (glob)
       
   310   DBG-DELTAS: MANIFESTLOG: * (glob)
       
   311   DBG-DELTAS: FILELOG:my-file.txt: rev=3: delta-base=2 * (glob)
       
   312   DBG-DELTAS: FILELOG:my-file.txt: rev=4: delta-base=4 is-cached=1 - search-rounds=0 try-count=0 - delta-type=full   snap-depth=0 - * (glob)
       
   313 
   299 Check that "forced" behavior do not challenge the delta, even if it is bad.
   314 Check that "forced" behavior do not challenge the delta, even if it is bad.
   300 ---------------------------------------------------------------------------
   315 ---------------------------------------------------------------------------
   301 
   316 
   302 The client does not challenge anything and applies the bizarre delta directly.
   317 The client does not challenge anything and applies the bizarre delta directly.
   303 
   318 
   304 Note: If the bundling process becomes smarter, this test might no longer work
   319 Note: If the bundling process becomes smarter, this test might no longer work
   305 (as the server won't be sending "bad" deltas anymore) and might need something
   320 (as the server won't be sending "bad" deltas anymore) and might need something
   306 more subtle to test this behavior.
   321 more subtle to test this behavior.
   307 
   322 
   308   $ cp -ar local-pre-pull-full local-forced-full
   323   $ hg bundle -R peer-bad-delta-with-full --all --config devel.bundle.delta=p1 all-p1.hg
   309   $ hg -R local-forced-full pull --quiet \
   324   5 changesets found
   310   > --config 'paths.default:delta-reuse-policy=forced'
   325   $ cp -ar local-pre-pull-full local-forced-full-p1
       
   326   $ hg -R local-forced-full-p1 pull --quiet \
       
   327   > --config 'paths.*:delta-reuse-policy=forced' all-p1.hg
   311   DBG-DELTAS: CHANGELOG: * (glob)
   328   DBG-DELTAS: CHANGELOG: * (glob)
   312   DBG-DELTAS: CHANGELOG: * (glob)
   329   DBG-DELTAS: CHANGELOG: * (glob)
   313   DBG-DELTAS: MANIFESTLOG: * (glob)
   330   DBG-DELTAS: MANIFESTLOG: * (glob)
   314   DBG-DELTAS: MANIFESTLOG: * (glob)
   331   DBG-DELTAS: MANIFESTLOG: * (glob)
   315   DBG-DELTAS: FILELOG:my-file.txt: rev=3: delta-base=2 * (glob)
   332   DBG-DELTAS: FILELOG:my-file.txt: rev=3: delta-base=2 * (glob)