comparison tests/test-upgrade-repo.t @ 38719:4ad2a1ff0404

upgrade: add information about sparse-revlog Show information about sparse-revlog in debugformat, just like other requirements.
author Paul Morelle <paul.morelle@octobus.net>
date Mon, 16 Jul 2018 17:10:52 -0700
parents cbc4425e81b5
children d12415b8f833
comparison
equal deleted inserted replaced
38718:f8762ea73e0d 38719:4ad2a1ff0404
54 $ hg debugformat 54 $ hg debugformat
55 format-variant repo 55 format-variant repo
56 fncache: yes 56 fncache: yes
57 dotencode: yes 57 dotencode: yes
58 generaldelta: yes 58 generaldelta: yes
59 sparserevlog: no
59 plain-cl-delta: yes 60 plain-cl-delta: yes
60 compression: zlib 61 compression: zlib
61 $ hg debugformat --verbose 62 $ hg debugformat --verbose
62 format-variant repo config default 63 format-variant repo config default
63 fncache: yes yes yes 64 fncache: yes yes yes
64 dotencode: yes yes yes 65 dotencode: yes yes yes
65 generaldelta: yes yes yes 66 generaldelta: yes yes yes
67 sparserevlog: no no no
66 plain-cl-delta: yes yes yes 68 plain-cl-delta: yes yes yes
67 compression: zlib zlib zlib 69 compression: zlib zlib zlib
68 $ hg debugformat --verbose --config format.usegfncache=no 70 $ hg debugformat --verbose --config format.usegfncache=no
69 format-variant repo config default 71 format-variant repo config default
70 fncache: yes yes yes 72 fncache: yes yes yes
71 dotencode: yes yes yes 73 dotencode: yes yes yes
72 generaldelta: yes yes yes 74 generaldelta: yes yes yes
75 sparserevlog: no no no
73 plain-cl-delta: yes yes yes 76 plain-cl-delta: yes yes yes
74 compression: zlib zlib zlib 77 compression: zlib zlib zlib
75 $ hg debugformat --verbose --config format.usegfncache=no --color=debug 78 $ hg debugformat --verbose --config format.usegfncache=no --color=debug
76 format-variant repo config default 79 format-variant repo config default
77 [formatvariant.name.uptodate|fncache: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] 80 [formatvariant.name.uptodate|fncache: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
78 [formatvariant.name.uptodate|dotencode: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] 81 [formatvariant.name.uptodate|dotencode: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
79 [formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] 82 [formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
83 [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
80 [formatvariant.name.uptodate|plain-cl-delta:][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] 84 [formatvariant.name.uptodate|plain-cl-delta:][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
81 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib] 85 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib]
82 $ hg debugformat -Tjson 86 $ hg debugformat -Tjson
83 [ 87 [
84 { 88 {
98 "default": true, 102 "default": true,
99 "name": "generaldelta", 103 "name": "generaldelta",
100 "repo": true 104 "repo": true
101 }, 105 },
102 { 106 {
107 "config": false,
108 "default": false,
109 "name": "sparserevlog",
110 "repo": false
111 },
112 {
103 "config": true, 113 "config": true,
104 "default": true, 114 "default": true,
105 "name": "plain-cl-delta", 115 "name": "plain-cl-delta",
106 "repo": true 116 "repo": true
107 }, 117 },
117 performing an upgrade with "--run" will make the following changes: 127 performing an upgrade with "--run" will make the following changes:
118 128
119 requirements 129 requirements
120 preserved: dotencode, fncache, generaldelta, revlogv1, store 130 preserved: dotencode, fncache, generaldelta, revlogv1, store
121 131
132 sparserevlog
133 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
134
122 additional optimizations are available by specifying "--optimize <name>": 135 additional optimizations are available by specifying "--optimize <name>":
123 136
124 redeltaparent 137 redeltaparent
125 deltas within internal storage will be recalculated to choose an optimal base revision where this was not already done; the size of the repository may shrink and various operations may become faster; the first time this optimization is performed could slow down upgrade execution considerably; subsequent invocations should not run noticeably slower 138 deltas within internal storage will be recalculated to choose an optimal base revision where this was not already done; the size of the repository may shrink and various operations may become faster; the first time this optimization is performed could slow down upgrade execution considerably; subsequent invocations should not run noticeably slower
126 139
140 (no feature deficiencies found in existing repository) 153 (no feature deficiencies found in existing repository)
141 performing an upgrade with "--run" will make the following changes: 154 performing an upgrade with "--run" will make the following changes:
142 155
143 requirements 156 requirements
144 preserved: dotencode, fncache, generaldelta, revlogv1, store 157 preserved: dotencode, fncache, generaldelta, revlogv1, store
158
159 sparserevlog
160 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
145 161
146 redeltaparent 162 redeltaparent
147 deltas within internal storage will choose a new base revision if needed 163 deltas within internal storage will choose a new base revision if needed
148 164
149 additional optimizations are available by specifying "--optimize <name>": 165 additional optimizations are available by specifying "--optimize <name>":
168 $ hg debugformat 184 $ hg debugformat
169 format-variant repo 185 format-variant repo
170 fncache: no 186 fncache: no
171 dotencode: no 187 dotencode: no
172 generaldelta: no 188 generaldelta: no
189 sparserevlog: no
173 plain-cl-delta: yes 190 plain-cl-delta: yes
174 compression: zlib 191 compression: zlib
175 $ hg debugformat --verbose 192 $ hg debugformat --verbose
176 format-variant repo config default 193 format-variant repo config default
177 fncache: no yes yes 194 fncache: no yes yes
178 dotencode: no yes yes 195 dotencode: no yes yes
179 generaldelta: no yes yes 196 generaldelta: no yes yes
197 sparserevlog: no no no
180 plain-cl-delta: yes yes yes 198 plain-cl-delta: yes yes yes
181 compression: zlib zlib zlib 199 compression: zlib zlib zlib
182 $ hg debugformat --verbose --config format.usegeneraldelta=no 200 $ hg debugformat --verbose --config format.usegeneraldelta=no
183 format-variant repo config default 201 format-variant repo config default
184 fncache: no yes yes 202 fncache: no yes yes
185 dotencode: no yes yes 203 dotencode: no yes yes
186 generaldelta: no no yes 204 generaldelta: no no yes
205 sparserevlog: no no no
187 plain-cl-delta: yes yes yes 206 plain-cl-delta: yes yes yes
188 compression: zlib zlib zlib 207 compression: zlib zlib zlib
189 $ hg debugformat --verbose --config format.usegeneraldelta=no --color=debug 208 $ hg debugformat --verbose --config format.usegeneraldelta=no --color=debug
190 format-variant repo config default 209 format-variant repo config default
191 [formatvariant.name.mismatchconfig|fncache: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes] 210 [formatvariant.name.mismatchconfig|fncache: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes]
192 [formatvariant.name.mismatchconfig|dotencode: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes] 211 [formatvariant.name.mismatchconfig|dotencode: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes]
193 [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] 212 [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes]
213 [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
194 [formatvariant.name.uptodate|plain-cl-delta:][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] 214 [formatvariant.name.uptodate|plain-cl-delta:][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
195 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib] 215 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib]
196 $ hg debugupgraderepo 216 $ hg debugupgraderepo
197 repository lacks features recommended by current config options: 217 repository lacks features recommended by current config options:
198 218
219 repository will be better able to store files beginning with a space or period 239 repository will be better able to store files beginning with a space or period
220 240
221 generaldelta 241 generaldelta
222 repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster 242 repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster
223 243
244 sparserevlog
245 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
246
224 additional optimizations are available by specifying "--optimize <name>": 247 additional optimizations are available by specifying "--optimize <name>":
225 248
226 redeltaparent 249 redeltaparent
227 deltas within internal storage will be recalculated to choose an optimal base revision where this was not already done; the size of the repository may shrink and various operations may become faster; the first time this optimization is performed could slow down upgrade execution considerably; subsequent invocations should not run noticeably slower 250 deltas within internal storage will be recalculated to choose an optimal base revision where this was not already done; the size of the repository may shrink and various operations may become faster; the first time this optimization is performed could slow down upgrade execution considerably; subsequent invocations should not run noticeably slower
228 251
260 fncache 283 fncache
261 repository will be more resilient to storing certain paths and performance of certain operations should be improved 284 repository will be more resilient to storing certain paths and performance of certain operations should be improved
262 285
263 generaldelta 286 generaldelta
264 repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster 287 repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster
288
289 sparserevlog
290 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
265 291
266 additional optimizations are available by specifying "--optimize <name>": 292 additional optimizations are available by specifying "--optimize <name>":
267 293
268 redeltaparent 294 redeltaparent
269 deltas within internal storage will be recalculated to choose an optimal base revision where this was not already done; the size of the repository may shrink and various operations may become faster; the first time this optimization is performed could slow down upgrade execution considerably; subsequent invocations should not run noticeably slower 295 deltas within internal storage will be recalculated to choose an optimal base revision where this was not already done; the size of the repository may shrink and various operations may become faster; the first time this optimization is performed could slow down upgrade execution considerably; subsequent invocations should not run noticeably slower
286 $ hg -R modern debugupgraderepo --run 312 $ hg -R modern debugupgraderepo --run
287 upgrade will perform the following actions: 313 upgrade will perform the following actions:
288 314
289 requirements 315 requirements
290 preserved: dotencode, fncache, generaldelta, revlogv1, store 316 preserved: dotencode, fncache, generaldelta, revlogv1, store
317
318 sparserevlog
319 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
291 320
292 beginning upgrade... 321 beginning upgrade...
293 repository locked and read-only 322 repository locked and read-only
294 creating temporary repository to stage migrated data: $TESTTMP/modern/.hg/upgrade.* (glob) 323 creating temporary repository to stage migrated data: $TESTTMP/modern/.hg/upgrade.* (glob)
295 (it is safe to interrupt this process any time before data migration completes) 324 (it is safe to interrupt this process any time before data migration completes)
323 preserved: dotencode, fncache, revlogv1, store 352 preserved: dotencode, fncache, revlogv1, store
324 added: generaldelta 353 added: generaldelta
325 354
326 generaldelta 355 generaldelta
327 repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster 356 repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster
357
358 sparserevlog
359 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
328 360
329 beginning upgrade... 361 beginning upgrade...
330 repository locked and read-only 362 repository locked and read-only
331 creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) 363 creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
332 (it is safe to interrupt this process any time before data migration completes) 364 (it is safe to interrupt this process any time before data migration completes)
420 $ hg debugupgraderepo --run 452 $ hg debugupgraderepo --run
421 upgrade will perform the following actions: 453 upgrade will perform the following actions:
422 454
423 requirements 455 requirements
424 preserved: dotencode, fncache, generaldelta, revlogv1, store 456 preserved: dotencode, fncache, generaldelta, revlogv1, store
457
458 sparserevlog
459 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
425 460
426 beginning upgrade... 461 beginning upgrade...
427 repository locked and read-only 462 repository locked and read-only
428 creating temporary repository to stage migrated data: $TESTTMP/store-filenames/.hg/upgrade.* (glob) 463 creating temporary repository to stage migrated data: $TESTTMP/store-filenames/.hg/upgrade.* (glob)
429 (it is safe to interrupt this process any time before data migration completes) 464 (it is safe to interrupt this process any time before data migration completes)
452 upgrade will perform the following actions: 487 upgrade will perform the following actions:
453 488
454 requirements 489 requirements
455 preserved: dotencode, fncache, generaldelta, revlogv1, store 490 preserved: dotencode, fncache, generaldelta, revlogv1, store
456 491
492 sparserevlog
493 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
494
457 redeltafulladd 495 redeltafulladd
458 each revision will be added as new content to the internal storage; this will likely drastically slow down execution time, but some extensions might need it 496 each revision will be added as new content to the internal storage; this will likely drastically slow down execution time, but some extensions might need it
459 497
460 beginning upgrade... 498 beginning upgrade...
461 repository locked and read-only 499 repository locked and read-only
509 $ hg debugupgraderepo --run 547 $ hg debugupgraderepo --run
510 upgrade will perform the following actions: 548 upgrade will perform the following actions:
511 549
512 requirements 550 requirements
513 preserved: dotencode, fncache, generaldelta, largefiles, revlogv1, store 551 preserved: dotencode, fncache, generaldelta, largefiles, revlogv1, store
552
553 sparserevlog
554 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
514 555
515 beginning upgrade... 556 beginning upgrade...
516 repository locked and read-only 557 repository locked and read-only
517 creating temporary repository to stage migrated data: $TESTTMP/largefilesrepo/.hg/upgrade.* (glob) 558 creating temporary repository to stage migrated data: $TESTTMP/largefilesrepo/.hg/upgrade.* (glob)
518 (it is safe to interrupt this process any time before data migration completes) 559 (it is safe to interrupt this process any time before data migration completes)
562 upgrade will perform the following actions: 603 upgrade will perform the following actions:
563 604
564 requirements 605 requirements
565 preserved: dotencode, fncache, generaldelta, largefiles, lfs, revlogv1, store 606 preserved: dotencode, fncache, generaldelta, largefiles, lfs, revlogv1, store
566 607
608 sparserevlog
609 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
610
567 beginning upgrade... 611 beginning upgrade...
568 repository locked and read-only 612 repository locked and read-only
569 creating temporary repository to stage migrated data: $TESTTMP/largefilesrepo/.hg/upgrade.* (glob) 613 creating temporary repository to stage migrated data: $TESTTMP/largefilesrepo/.hg/upgrade.* (glob)
570 (it is safe to interrupt this process any time before data migration completes) 614 (it is safe to interrupt this process any time before data migration completes)
571 migrating 6 total revisions (2 in filelogs, 2 in manifests, 2 in changelog) 615 migrating 6 total revisions (2 in filelogs, 2 in manifests, 2 in changelog)
656 $ hg debugupgraderepo --run --optimize redeltaall 700 $ hg debugupgraderepo --run --optimize redeltaall
657 upgrade will perform the following actions: 701 upgrade will perform the following actions:
658 702
659 requirements 703 requirements
660 preserved: dotencode, fncache, generaldelta, revlogv1, store 704 preserved: dotencode, fncache, generaldelta, revlogv1, store
705
706 sparserevlog
707 Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
661 708
662 redeltaall 709 redeltaall
663 deltas within internal storage will be fully recomputed; this will likely drastically slow down execution time 710 deltas within internal storage will be fully recomputed; this will likely drastically slow down execution time
664 711
665 beginning upgrade... 712 beginning upgrade...