--- a/tests/test-generaldelta.t Wed Apr 07 13:31:15 2021 +0200
+++ b/tests/test-generaldelta.t Tue Apr 06 18:55:19 2021 +0200
@@ -106,22 +106,33 @@
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg -R repo debugdeltachain -m
rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio
- 0 1 1 -1 base 104 135 104 0.77037 104 0 0.00000
- 1 1 2 0 prev 57 135 161 1.19259 161 0 0.00000
- 2 1 3 1 prev 57 135 218 1.61481 218 0 0.00000
+ 0 1 1 -1 base 104 135 104 0.77037 104 0 0.00000 (no-zstd !)
+ 1 1 2 0 prev 57 135 161 1.19259 161 0 0.00000 (no-zstd !)
+ 2 1 3 1 prev 57 135 218 1.61481 218 0 0.00000 (no-zstd !)
+ 0 1 1 -1 base 107 135 107 0.79259 107 0 0.00000 (zstd !)
+ 1 1 2 0 prev 57 135 164 1.21481 164 0 0.00000 (zstd !)
+ 2 1 3 1 prev 57 135 221 1.63704 221 0 0.00000 (zstd !)
3 2 1 -1 base 104 135 104 0.77037 104 0 0.00000
$ hg -R usegd debugdeltachain -m
rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio
- 0 1 1 -1 base 104 135 104 0.77037 104 0 0.00000
- 1 1 2 0 p1 57 135 161 1.19259 161 0 0.00000
- 2 1 3 1 prev 57 135 218 1.61481 218 0 0.00000
- 3 1 2 0 p1 57 135 161 1.19259 275 114 0.70807
+ 0 1 1 -1 base 104 135 104 0.77037 104 0 0.00000 (no-zstd !)
+ 1 1 2 0 p1 57 135 161 1.19259 161 0 0.00000 (no-zstd !)
+ 2 1 3 1 prev 57 135 218 1.61481 218 0 0.00000 (no-zstd !)
+ 3 1 2 0 p1 57 135 161 1.19259 275 114 0.70807 (no-zstd !)
+ 0 1 1 -1 base 107 135 107 0.79259 107 0 0.00000 (zstd !)
+ 1 1 2 0 p1 57 135 164 1.21481 164 0 0.00000 (zstd !)
+ 2 1 3 1 prev 57 135 221 1.63704 221 0 0.00000 (zstd !)
+ 3 1 2 0 p1 57 135 164 1.21481 278 114 0.69512 (zstd !)
$ hg -R full debugdeltachain -m
rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio
- 0 1 1 -1 base 104 135 104 0.77037 104 0 0.00000
- 1 1 2 0 p1 57 135 161 1.19259 161 0 0.00000
- 2 1 2 0 p1 57 135 161 1.19259 218 57 0.35404
- 3 1 2 0 p1 57 135 161 1.19259 275 114 0.70807
+ 0 1 1 -1 base 104 135 104 0.77037 104 0 0.00000 (no-zstd !)
+ 1 1 2 0 p1 57 135 161 1.19259 161 0 0.00000 (no-zstd !)
+ 2 1 2 0 p1 57 135 161 1.19259 218 57 0.35404 (no-zstd !)
+ 3 1 2 0 p1 57 135 161 1.19259 275 114 0.70807 (no-zstd !)
+ 0 1 1 -1 base 107 135 107 0.79259 107 0 0.00000 (zstd !)
+ 1 1 2 0 p1 57 135 164 1.21481 164 0 0.00000 (zstd !)
+ 2 1 2 0 p1 57 135 164 1.21481 221 57 0.34756 (zstd !)
+ 3 1 2 0 p1 57 135 164 1.21481 278 114 0.69512 (zstd !)
Test revlog.optimize-delta-parent-choice
@@ -142,9 +153,12 @@
$ hg commit -q -m merge
$ hg debugdeltachain -m
rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio
- 0 1 1 -1 base 59 215 59 0.27442 59 0 0.00000
- 1 1 2 0 prev 61 86 120 1.39535 120 0 0.00000
- 2 1 2 0 p2 62 301 121 0.40199 182 61 0.50413
+ 0 1 1 -1 base 59 215 59 0.27442 59 0 0.00000 (no-zstd !)
+ 1 1 2 0 prev 61 86 120 1.39535 120 0 0.00000 (no-zstd !)
+ 2 1 2 0 p2 62 301 121 0.40199 182 61 0.50413 (no-zstd !)
+ 0 1 1 -1 base 68 215 68 0.31628 68 0 0.00000 (zstd !)
+ 1 1 2 0 prev 70 86 138 1.60465 138 0 0.00000 (zstd !)
+ 2 1 2 0 p2 68 301 136 0.45183 206 70 0.51471 (zstd !)
$ hg strip -q -r . --config extensions.strip=
@@ -154,9 +168,12 @@
$ hg commit -q -m merge --config storage.revlog.optimize-delta-parent-choice=yes
$ hg debugdeltachain -m
rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio
- 0 1 1 -1 base 59 215 59 0.27442 59 0 0.00000
- 1 1 2 0 prev 61 86 120 1.39535 120 0 0.00000
- 2 1 2 0 p2 62 301 121 0.40199 182 61 0.50413
+ 0 1 1 -1 base 59 215 59 0.27442 59 0 0.00000 (no-zstd !)
+ 1 1 2 0 prev 61 86 120 1.39535 120 0 0.00000 (no-zstd !)
+ 2 1 2 0 p2 62 301 121 0.40199 182 61 0.50413 (no-zstd !)
+ 0 1 1 -1 base 68 215 68 0.31628 68 0 0.00000 (zstd !)
+ 1 1 2 0 prev 70 86 138 1.60465 138 0 0.00000 (zstd !)
+ 2 1 2 0 p2 68 301 136 0.45183 206 70 0.51471 (zstd !)
Test that strip bundle use bundle2
$ hg --config extensions.strip= strip .
@@ -267,12 +284,17 @@
46 3 29 45 p1 58 1334 1671 1.25262 1671 0 0.00000
47 3 30 46 p1 58 1380 1729 1.25290 1729 0 0.00000
48 3 31 47 p1 58 1426 1787 1.25316 1787 0 0.00000
- 49 4 1 -1 base 197 316 197 0.62342 197 0 0.00000
- 50 4 2 49 p1 58 362 255 0.70442 255 0 0.00000
- 51 4 3 50 prev 356 594 611 1.02862 611 0 0.00000
- 52 4 4 51 p1 58 640 669 1.04531 669 0 0.00000
+ 49 4 1 -1 base 197 316 197 0.62342 197 0 0.00000 (no-zstd !)
+ 50 4 2 49 p1 58 362 255 0.70442 255 0 0.00000 (no-zstd !)
+ 51 4 3 50 prev 356 594 611 1.02862 611 0 0.00000 (no-zstd !)
+ 52 4 4 51 p1 58 640 669 1.04531 669 0 0.00000 (no-zstd !)
+ 49 4 1 -1 base 205 316 205 0.64873 205 0 0.00000 (zstd !)
+ 50 4 2 49 p1 58 362 263 0.72652 263 0 0.00000 (zstd !)
+ 51 4 3 50 prev 366 594 629 1.05892 629 0 0.00000 (zstd !)
+ 52 4 4 51 p1 58 640 687 1.07344 687 0 0.00000 (zstd !)
53 5 1 -1 base 0 0 0 0.00000 0 0 0.00000
- 54 6 1 -1 base 369 640 369 0.57656 369 0 0.00000
+ 54 6 1 -1 base 369 640 369 0.57656 369 0 0.00000 (no-zstd !)
+ 54 6 1 -1 base 375 640 375 0.58594 375 0 0.00000 (zstd !)
$ hg clone --pull source-repo --config experimental.maxdeltachainspan=2800 relax-chain --config format.generaldelta=yes
requesting all changes
adding changesets
@@ -333,12 +355,17 @@
46 3 29 45 p1 58 1334 1671 1.25262 1671 0 0.00000
47 3 30 46 p1 58 1380 1729 1.25290 1729 0 0.00000
48 3 31 47 p1 58 1426 1787 1.25316 1787 0 0.00000
- 49 4 1 -1 base 197 316 197 0.62342 197 0 0.00000
- 50 4 2 49 p1 58 362 255 0.70442 255 0 0.00000
- 51 2 13 17 p1 58 594 739 1.24411 2781 2042 2.76319
- 52 5 1 -1 base 369 640 369 0.57656 369 0 0.00000
+ 49 4 1 -1 base 197 316 197 0.62342 197 0 0.00000 (no-zstd !)
+ 50 4 2 49 p1 58 362 255 0.70442 255 0 0.00000 (no-zstd !)
+ 51 2 13 17 p1 58 594 739 1.24411 2781 2042 2.76319 (no-zstd !)
+ 52 5 1 -1 base 369 640 369 0.57656 369 0 0.00000 (no-zstd !)
+ 49 4 1 -1 base 205 316 205 0.64873 205 0 0.00000 (zstd !)
+ 50 4 2 49 p1 58 362 263 0.72652 263 0 0.00000 (zstd !)
+ 51 2 13 17 p1 58 594 739 1.24411 2789 2050 2.77402 (zstd !)
+ 52 5 1 -1 base 375 640 375 0.58594 375 0 0.00000 (zstd !)
53 6 1 -1 base 0 0 0 0.00000 0 0 0.00000
- 54 7 1 -1 base 369 640 369 0.57656 369 0 0.00000
+ 54 7 1 -1 base 369 640 369 0.57656 369 0 0.00000 (no-zstd !)
+ 54 7 1 -1 base 375 640 375 0.58594 375 0 0.00000 (zstd !)
$ hg clone --pull source-repo --config experimental.maxdeltachainspan=0 noconst-chain --config format.usegeneraldelta=yes --config storage.revlog.reuse-external-delta-parent=no
requesting all changes
adding changesets
@@ -404,4 +431,5 @@
51 2 13 17 p1 58 594 739 1.24411 2642 1903 2.57510
52 2 14 51 p1 58 640 797 1.24531 2700 1903 2.38770
53 4 1 -1 base 0 0 0 0.00000 0 0 0.00000
- 54 5 1 -1 base 369 640 369 0.57656 369 0 0.00000
+ 54 5 1 -1 base 369 640 369 0.57656 369 0 0.00000 (no-zstd !)
+ 54 5 1 -1 base 375 640 375 0.58594 375 0 0.00000 (zstd !)