tests/test-sparse-revlog.t
changeset 49608 78ba41878f2e
parent 49589 266bb5c86f4b
child 49612 e706bb41fdb3
equal deleted inserted replaced
49601:8009a89bc18b 49608:78ba41878f2e
   187   DBG-DELTAS-SEARCH:     size=50213
   187   DBG-DELTAS-SEARCH:     size=50213
   188   DBG-DELTAS-SEARCH:     base=4623
   188   DBG-DELTAS-SEARCH:     base=4623
   189   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   189   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   190   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   190   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   191   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   191   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   192   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   192   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   193 
   193 
   194   $ cat << EOF >>.hg/hgrc
   194   $ cat << EOF >>.hg/hgrc
   195   > [storage]
   195   > [storage]
   196   > revlog.optimize-delta-parent-choice = no
   196   > revlog.optimize-delta-parent-choice = no
   197   > revlog.reuse-external-delta = yes
   197   > revlog.reuse-external-delta = yes
   198   > EOF
   198   > EOF
   199 
   199 
   200   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --quiet
   200   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --quiet
   201   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   201   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   202   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source full
   202   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source full
   203   DBG-DELTAS-SEARCH: SEARCH rev=4971
   203   DBG-DELTAS-SEARCH: SEARCH rev=4971
   204   DBG-DELTAS-SEARCH: ROUND #1 - 2 candidates - search-down
   204   DBG-DELTAS-SEARCH: ROUND #1 - 2 candidates - search-down
   205   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4962
   205   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4962
   206   DBG-DELTAS-SEARCH:     type=snapshot-4
   206   DBG-DELTAS-SEARCH:     type=snapshot-4
   229   DBG-DELTAS-SEARCH:     size=50213
   229   DBG-DELTAS-SEARCH:     size=50213
   230   DBG-DELTAS-SEARCH:     base=4623
   230   DBG-DELTAS-SEARCH:     base=4623
   231   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   231   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   232   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   232   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   233   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   233   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   234   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   234   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   235   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source storage
   235   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source storage
   236   DBG-DELTAS-SEARCH: SEARCH rev=4971
   236   DBG-DELTAS-SEARCH: SEARCH rev=4971
   237   DBG-DELTAS-SEARCH: ROUND #1 - 1 candidates - search-down
   237   DBG-DELTAS-SEARCH: ROUND #1 - 1 candidates - cached-delta
   238   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4930
   238   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4930
   239   DBG-DELTAS-SEARCH:     type=snapshot-3
   239   DBG-DELTAS-SEARCH:     type=snapshot-3
   240   DBG-DELTAS-SEARCH:     size=39228
   240   DBG-DELTAS-SEARCH:     size=39228
   241   DBG-DELTAS-SEARCH:     base=4799
   241   DBG-DELTAS-SEARCH:     base=4799
   242   DBG-DELTAS-SEARCH:     uncompressed-delta-size=33050
   242   DBG-DELTAS-SEARCH:     uncompressed-delta-size=33050
   243   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   243   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   244   DBG-DELTAS-SEARCH:     DELTA: length=19179 (GOOD)
   244   DBG-DELTAS-SEARCH:     DELTA: length=19179 (GOOD)
   245   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: search-rounds=1 try-count=1 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   245   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=1 - search-rounds=1 try-count=1 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   246   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source p1
   246   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source p1
   247   DBG-DELTAS-SEARCH: SEARCH rev=4971
   247   DBG-DELTAS-SEARCH: SEARCH rev=4971
   248   DBG-DELTAS-SEARCH: ROUND #1 - 2 candidates - search-down
   248   DBG-DELTAS-SEARCH: ROUND #1 - 2 candidates - search-down
   249   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4962
   249   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4962
   250   DBG-DELTAS-SEARCH:     type=snapshot-4
   250   DBG-DELTAS-SEARCH:     type=snapshot-4
   273   DBG-DELTAS-SEARCH:     size=50213
   273   DBG-DELTAS-SEARCH:     size=50213
   274   DBG-DELTAS-SEARCH:     base=4623
   274   DBG-DELTAS-SEARCH:     base=4623
   275   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   275   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   276   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   276   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   277   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   277   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   278   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   278   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   279   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source p2
   279   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source p2
   280   DBG-DELTAS-SEARCH: SEARCH rev=4971
   280   DBG-DELTAS-SEARCH: SEARCH rev=4971
   281   DBG-DELTAS-SEARCH: ROUND #1 - 2 candidates - search-down
   281   DBG-DELTAS-SEARCH: ROUND #1 - 2 candidates - search-down
   282   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4962
   282   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4962
   283   DBG-DELTAS-SEARCH:     type=snapshot-4
   283   DBG-DELTAS-SEARCH:     type=snapshot-4
   306   DBG-DELTAS-SEARCH:     size=50213
   306   DBG-DELTAS-SEARCH:     size=50213
   307   DBG-DELTAS-SEARCH:     base=4623
   307   DBG-DELTAS-SEARCH:     base=4623
   308   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   308   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   309   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   309   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   310   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   310   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   311   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   311   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   312   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source prev
   312   $ hg debug-delta-find SPARSE-REVLOG-TEST-FILE 4971 --source prev
   313   DBG-DELTAS-SEARCH: SEARCH rev=4971
   313   DBG-DELTAS-SEARCH: SEARCH rev=4971
   314   DBG-DELTAS-SEARCH: ROUND #1 - 2 candidates - search-down
   314   DBG-DELTAS-SEARCH: ROUND #1 - 2 candidates - search-down
   315   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4962
   315   DBG-DELTAS-SEARCH:   CANDIDATE: rev=4962
   316   DBG-DELTAS-SEARCH:     type=snapshot-4
   316   DBG-DELTAS-SEARCH:     type=snapshot-4
   339   DBG-DELTAS-SEARCH:     size=50213
   339   DBG-DELTAS-SEARCH:     size=50213
   340   DBG-DELTAS-SEARCH:     base=4623
   340   DBG-DELTAS-SEARCH:     base=4623
   341   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   341   DBG-DELTAS-SEARCH:     uncompressed-delta-size=82661
   342   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   342   DBG-DELTAS-SEARCH:     delta-search-time=* (glob)
   343   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   343   DBG-DELTAS-SEARCH:     DELTA: length=49132 (BAD)
   344   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   344   DBG-DELTAS: FILELOG:SPARSE-REVLOG-TEST-FILE: rev=4971: delta-base=4930 is-cached=0 - search-rounds=3 try-count=3 - delta-type=snapshot snap-depth=4 - p1-chain-length=15 p2-chain-length=-1 - duration=* (glob)
   345 
   345 
   346   $ cd ..
   346   $ cd ..