##// END OF EJS Templates
sidedatacopies: teach upgrade about the new requirement...
marmoute -
r43408:f9dc98a9 default
parent child Browse files
Show More
@@ -371,6 +371,21 b' class sidedata(requirementformatvariant)'
371
371
372
372
373 @registerformatvariant
373 @registerformatvariant
374 class copiessdc(requirementformatvariant):
375 name = b'copies-sdc'
376
377 _requirement = localrepo.COPIESSDC_REQUIREMENT
378
379 default = False
380
381 description = _(b'Stores copies information alongside changesets.')
382
383 upgrademessage = _(
384 b'Allows to use more efficient algorithm to deal with ' b'copy tracing.'
385 )
386
387
388 @registerformatvariant
374 class removecldeltachain(formatvariant):
389 class removecldeltachain(formatvariant):
375 name = b'plain-cl-delta'
390 name = b'plain-cl-delta'
376
391
@@ -135,6 +135,9 b' non-lfs content, and the extension enabl'
135 sidedata
135 sidedata
136 Allows storage of extra data alongside a revision.
136 Allows storage of extra data alongside a revision.
137
137
138 copies-sdc
139 Allows to use more efficient algorithm to deal with copy tracing.
140
138 beginning upgrade...
141 beginning upgrade...
139 repository locked and read-only
142 repository locked and read-only
140 creating temporary repository to stage migrated data: * (glob)
143 creating temporary repository to stage migrated data: * (glob)
@@ -56,6 +56,7 b' Check that we can upgrade to sidedata'
56 generaldelta: yes yes yes
56 generaldelta: yes yes yes
57 sparserevlog: yes yes yes
57 sparserevlog: yes yes yes
58 sidedata: no no no
58 sidedata: no no no
59 copies-sdc: no no no
59 plain-cl-delta: yes yes yes
60 plain-cl-delta: yes yes yes
60 compression: zlib zlib zlib
61 compression: zlib zlib zlib
61 compression-level: default default default
62 compression-level: default default default
@@ -66,6 +67,7 b' Check that we can upgrade to sidedata'
66 generaldelta: yes yes yes
67 generaldelta: yes yes yes
67 sparserevlog: yes yes yes
68 sparserevlog: yes yes yes
68 sidedata: no yes no
69 sidedata: no yes no
70 copies-sdc: no no no
69 plain-cl-delta: yes yes yes
71 plain-cl-delta: yes yes yes
70 compression: zlib zlib zlib
72 compression: zlib zlib zlib
71 compression-level: default default default
73 compression-level: default default default
@@ -82,6 +84,7 b' Check that we can downgrade from sidedat'
82 generaldelta: yes yes yes
84 generaldelta: yes yes yes
83 sparserevlog: yes yes yes
85 sparserevlog: yes yes yes
84 sidedata: yes no no
86 sidedata: yes no no
87 copies-sdc: no no no
85 plain-cl-delta: yes yes yes
88 plain-cl-delta: yes yes yes
86 compression: zlib zlib zlib
89 compression: zlib zlib zlib
87 compression-level: default default default
90 compression-level: default default default
@@ -92,6 +95,7 b' Check that we can downgrade from sidedat'
92 generaldelta: yes yes yes
95 generaldelta: yes yes yes
93 sparserevlog: yes yes yes
96 sparserevlog: yes yes yes
94 sidedata: yes no no
97 sidedata: yes no no
98 copies-sdc: no no no
95 plain-cl-delta: yes yes yes
99 plain-cl-delta: yes yes yes
96 compression: zlib zlib zlib
100 compression: zlib zlib zlib
97 compression-level: default default default
101 compression-level: default default default
@@ -58,6 +58,7 b' An upgrade of a repository created with '
58 generaldelta: yes
58 generaldelta: yes
59 sparserevlog: yes
59 sparserevlog: yes
60 sidedata: no
60 sidedata: no
61 copies-sdc: no
61 plain-cl-delta: yes
62 plain-cl-delta: yes
62 compression: zlib
63 compression: zlib
63 compression-level: default
64 compression-level: default
@@ -68,6 +69,7 b' An upgrade of a repository created with '
68 generaldelta: yes yes yes
69 generaldelta: yes yes yes
69 sparserevlog: yes yes yes
70 sparserevlog: yes yes yes
70 sidedata: no no no
71 sidedata: no no no
72 copies-sdc: no no no
71 plain-cl-delta: yes yes yes
73 plain-cl-delta: yes yes yes
72 compression: zlib zlib zlib
74 compression: zlib zlib zlib
73 compression-level: default default default
75 compression-level: default default default
@@ -78,6 +80,7 b' An upgrade of a repository created with '
78 generaldelta: yes yes yes
80 generaldelta: yes yes yes
79 sparserevlog: yes yes yes
81 sparserevlog: yes yes yes
80 sidedata: no no no
82 sidedata: no no no
83 copies-sdc: no no no
81 plain-cl-delta: yes yes yes
84 plain-cl-delta: yes yes yes
82 compression: zlib zlib zlib
85 compression: zlib zlib zlib
83 compression-level: default default default
86 compression-level: default default default
@@ -88,6 +91,7 b' An upgrade of a repository created with '
88 [formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
91 [formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
89 [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
92 [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
90 [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
93 [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
94 [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
91 [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
95 [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
92 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib]
96 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib]
93 [formatvariant.name.uptodate|compression-level:][formatvariant.repo.uptodate| default][formatvariant.config.default| default][formatvariant.default| default]
97 [formatvariant.name.uptodate|compression-level:][formatvariant.repo.uptodate| default][formatvariant.config.default| default][formatvariant.default| default]
@@ -124,6 +128,12 b' An upgrade of a repository created with '
124 "repo": false
128 "repo": false
125 },
129 },
126 {
130 {
131 "config": false,
132 "default": false,
133 "name": "copies-sdc",
134 "repo": false
135 },
136 {
127 "config": true,
137 "config": true,
128 "default": true,
138 "default": true,
129 "name": "plain-cl-delta",
139 "name": "plain-cl-delta",
@@ -152,6 +162,9 b' An upgrade of a repository created with '
152 sidedata
162 sidedata
153 Allows storage of extra data alongside a revision.
163 Allows storage of extra data alongside a revision.
154
164
165 copies-sdc
166 Allows to use more efficient algorithm to deal with copy tracing.
167
155 additional optimizations are available by specifying "--optimize <name>":
168 additional optimizations are available by specifying "--optimize <name>":
156
169
157 re-delta-parent
170 re-delta-parent
@@ -179,6 +192,9 b' An upgrade of a repository created with '
179 sidedata
192 sidedata
180 Allows storage of extra data alongside a revision.
193 Allows storage of extra data alongside a revision.
181
194
195 copies-sdc
196 Allows to use more efficient algorithm to deal with copy tracing.
197
182 re-delta-parent
198 re-delta-parent
183 deltas within internal storage will choose a new base revision if needed
199 deltas within internal storage will choose a new base revision if needed
184
200
@@ -206,6 +222,9 b' modern form of the option'
206 sidedata
222 sidedata
207 Allows storage of extra data alongside a revision.
223 Allows storage of extra data alongside a revision.
208
224
225 copies-sdc
226 Allows to use more efficient algorithm to deal with copy tracing.
227
209 re-delta-parent
228 re-delta-parent
210 deltas within internal storage will choose a new base revision if needed
229 deltas within internal storage will choose a new base revision if needed
211
230
@@ -242,6 +261,7 b' Various sub-optimal detections work'
242 generaldelta: no
261 generaldelta: no
243 sparserevlog: no
262 sparserevlog: no
244 sidedata: no
263 sidedata: no
264 copies-sdc: no
245 plain-cl-delta: yes
265 plain-cl-delta: yes
246 compression: zlib
266 compression: zlib
247 compression-level: default
267 compression-level: default
@@ -252,6 +272,7 b' Various sub-optimal detections work'
252 generaldelta: no yes yes
272 generaldelta: no yes yes
253 sparserevlog: no yes yes
273 sparserevlog: no yes yes
254 sidedata: no no no
274 sidedata: no no no
275 copies-sdc: no no no
255 plain-cl-delta: yes yes yes
276 plain-cl-delta: yes yes yes
256 compression: zlib zlib zlib
277 compression: zlib zlib zlib
257 compression-level: default default default
278 compression-level: default default default
@@ -262,6 +283,7 b' Various sub-optimal detections work'
262 generaldelta: no no yes
283 generaldelta: no no yes
263 sparserevlog: no no yes
284 sparserevlog: no no yes
264 sidedata: no no no
285 sidedata: no no no
286 copies-sdc: no no no
265 plain-cl-delta: yes yes yes
287 plain-cl-delta: yes yes yes
266 compression: zlib zlib zlib
288 compression: zlib zlib zlib
267 compression-level: default default default
289 compression-level: default default default
@@ -272,6 +294,7 b' Various sub-optimal detections work'
272 [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes]
294 [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes]
273 [formatvariant.name.mismatchdefault|sparserevlog: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes]
295 [formatvariant.name.mismatchdefault|sparserevlog: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes]
274 [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
296 [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
297 [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
275 [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
298 [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
276 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib]
299 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib]
277 [formatvariant.name.uptodate|compression-level:][formatvariant.repo.uptodate| default][formatvariant.config.default| default][formatvariant.default| default]
300 [formatvariant.name.uptodate|compression-level:][formatvariant.repo.uptodate| default][formatvariant.config.default| default][formatvariant.default| default]
@@ -312,6 +335,9 b' Various sub-optimal detections work'
312 sidedata
335 sidedata
313 Allows storage of extra data alongside a revision.
336 Allows storage of extra data alongside a revision.
314
337
338 copies-sdc
339 Allows to use more efficient algorithm to deal with copy tracing.
340
315 additional optimizations are available by specifying "--optimize <name>":
341 additional optimizations are available by specifying "--optimize <name>":
316
342
317 re-delta-parent
343 re-delta-parent
@@ -363,6 +389,9 b' Various sub-optimal detections work'
363 sidedata
389 sidedata
364 Allows storage of extra data alongside a revision.
390 Allows storage of extra data alongside a revision.
365
391
392 copies-sdc
393 Allows to use more efficient algorithm to deal with copy tracing.
394
366 additional optimizations are available by specifying "--optimize <name>":
395 additional optimizations are available by specifying "--optimize <name>":
367
396
368 re-delta-parent
397 re-delta-parent
@@ -392,6 +421,9 b' Upgrading a repository that is already m'
392 sidedata
421 sidedata
393 Allows storage of extra data alongside a revision.
422 Allows storage of extra data alongside a revision.
394
423
424 copies-sdc
425 Allows to use more efficient algorithm to deal with copy tracing.
426
395 beginning upgrade...
427 beginning upgrade...
396 repository locked and read-only
428 repository locked and read-only
397 creating temporary repository to stage migrated data: $TESTTMP/modern/.hg/upgrade.* (glob)
429 creating temporary repository to stage migrated data: $TESTTMP/modern/.hg/upgrade.* (glob)
@@ -446,6 +478,9 b' make sure we have a .d file'
446 sidedata
478 sidedata
447 Allows storage of extra data alongside a revision.
479 Allows storage of extra data alongside a revision.
448
480
481 copies-sdc
482 Allows to use more efficient algorithm to deal with copy tracing.
483
449 beginning upgrade...
484 beginning upgrade...
450 repository locked and read-only
485 repository locked and read-only
451 creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
486 creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
@@ -545,6 +580,9 b' unless --no-backup is passed'
545 sidedata
580 sidedata
546 Allows storage of extra data alongside a revision.
581 Allows storage of extra data alongside a revision.
547
582
583 copies-sdc
584 Allows to use more efficient algorithm to deal with copy tracing.
585
548 beginning upgrade...
586 beginning upgrade...
549 repository locked and read-only
587 repository locked and read-only
550 creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
588 creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
@@ -582,6 +620,9 b' We can restrict optimization to some rev'
582 sidedata
620 sidedata
583 Allows storage of extra data alongside a revision.
621 Allows storage of extra data alongside a revision.
584
622
623 copies-sdc
624 Allows to use more efficient algorithm to deal with copy tracing.
625
585 re-delta-parent
626 re-delta-parent
586 deltas within internal storage will choose a new base revision if needed
627 deltas within internal storage will choose a new base revision if needed
587
628
@@ -659,6 +700,9 b' Check we can select negatively'
659 sidedata
700 sidedata
660 Allows storage of extra data alongside a revision.
701 Allows storage of extra data alongside a revision.
661
702
703 copies-sdc
704 Allows to use more efficient algorithm to deal with copy tracing.
705
662 re-delta-parent
706 re-delta-parent
663 deltas within internal storage will choose a new base revision if needed
707 deltas within internal storage will choose a new base revision if needed
664
708
@@ -708,6 +752,9 b' Check that we can select changelog only'
708 sidedata
752 sidedata
709 Allows storage of extra data alongside a revision.
753 Allows storage of extra data alongside a revision.
710
754
755 copies-sdc
756 Allows to use more efficient algorithm to deal with copy tracing.
757
711 re-delta-parent
758 re-delta-parent
712 deltas within internal storage will choose a new base revision if needed
759 deltas within internal storage will choose a new base revision if needed
713
760
@@ -757,6 +804,9 b' Check that we can select filelog only'
757 sidedata
804 sidedata
758 Allows storage of extra data alongside a revision.
805 Allows storage of extra data alongside a revision.
759
806
807 copies-sdc
808 Allows to use more efficient algorithm to deal with copy tracing.
809
760 re-delta-parent
810 re-delta-parent
761 deltas within internal storage will choose a new base revision if needed
811 deltas within internal storage will choose a new base revision if needed
762
812
@@ -811,6 +861,9 b" Check you can't skip revlog clone during"
811 sidedata
861 sidedata
812 Allows storage of extra data alongside a revision.
862 Allows storage of extra data alongside a revision.
813
863
864 copies-sdc
865 Allows to use more efficient algorithm to deal with copy tracing.
866
814 re-delta-parent
867 re-delta-parent
815 deltas within internal storage will choose a new base revision if needed
868 deltas within internal storage will choose a new base revision if needed
816
869
@@ -866,6 +919,9 b" Check you can't skip revlog clone during"
866 sidedata
919 sidedata
867 Allows storage of extra data alongside a revision.
920 Allows storage of extra data alongside a revision.
868
921
922 copies-sdc
923 Allows to use more efficient algorithm to deal with copy tracing.
924
869 re-delta-parent
925 re-delta-parent
870 deltas within internal storage will choose a new base revision if needed
926 deltas within internal storage will choose a new base revision if needed
871
927
@@ -923,6 +979,9 b" store files with special filenames aren'"
923 sidedata
979 sidedata
924 Allows storage of extra data alongside a revision.
980 Allows storage of extra data alongside a revision.
925
981
982 copies-sdc
983 Allows to use more efficient algorithm to deal with copy tracing.
984
926 beginning upgrade...
985 beginning upgrade...
927 repository locked and read-only
986 repository locked and read-only
928 creating temporary repository to stage migrated data: $TESTTMP/store-filenames/.hg/upgrade.* (glob)
987 creating temporary repository to stage migrated data: $TESTTMP/store-filenames/.hg/upgrade.* (glob)
@@ -957,6 +1016,9 b" store files with special filenames aren'"
957 sidedata
1016 sidedata
958 Allows storage of extra data alongside a revision.
1017 Allows storage of extra data alongside a revision.
959
1018
1019 copies-sdc
1020 Allows to use more efficient algorithm to deal with copy tracing.
1021
960 re-delta-fulladd
1022 re-delta-fulladd
961 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
1023 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
962
1024
@@ -1024,6 +1086,9 b' Check upgrading a large file repository'
1024 sidedata
1086 sidedata
1025 Allows storage of extra data alongside a revision.
1087 Allows storage of extra data alongside a revision.
1026
1088
1089 copies-sdc
1090 Allows to use more efficient algorithm to deal with copy tracing.
1091
1027 beginning upgrade...
1092 beginning upgrade...
1028 repository locked and read-only
1093 repository locked and read-only
1029 creating temporary repository to stage migrated data: $TESTTMP/largefilesrepo/.hg/upgrade.* (glob)
1094 creating temporary repository to stage migrated data: $TESTTMP/largefilesrepo/.hg/upgrade.* (glob)
@@ -1080,6 +1145,9 b' Check upgrading a large file repository'
1080 sidedata
1145 sidedata
1081 Allows storage of extra data alongside a revision.
1146 Allows storage of extra data alongside a revision.
1082
1147
1148 copies-sdc
1149 Allows to use more efficient algorithm to deal with copy tracing.
1150
1083 beginning upgrade...
1151 beginning upgrade...
1084 repository locked and read-only
1152 repository locked and read-only
1085 creating temporary repository to stage migrated data: $TESTTMP/largefilesrepo/.hg/upgrade.* (glob)
1153 creating temporary repository to stage migrated data: $TESTTMP/largefilesrepo/.hg/upgrade.* (glob)
@@ -1178,6 +1246,9 b' repository config is taken in account'
1178 sidedata
1246 sidedata
1179 Allows storage of extra data alongside a revision.
1247 Allows storage of extra data alongside a revision.
1180
1248
1249 copies-sdc
1250 Allows to use more efficient algorithm to deal with copy tracing.
1251
1181 re-delta-all
1252 re-delta-all
1182 deltas within internal storage will be fully recomputed; this will likely drastically slow down execution time
1253 deltas within internal storage will be fully recomputed; this will likely drastically slow down execution time
1183
1254
@@ -1270,6 +1341,7 b' upgrade'
1270 generaldelta: yes yes yes
1341 generaldelta: yes yes yes
1271 sparserevlog: yes yes yes
1342 sparserevlog: yes yes yes
1272 sidedata: no no no
1343 sidedata: no no no
1344 copies-sdc: no no no
1273 plain-cl-delta: yes yes yes
1345 plain-cl-delta: yes yes yes
1274 compression: zstd zlib zlib
1346 compression: zstd zlib zlib
1275 compression-level: default default default
1347 compression-level: default default default
@@ -1292,6 +1364,7 b' downgrade'
1292 generaldelta: yes yes yes
1364 generaldelta: yes yes yes
1293 sparserevlog: yes yes yes
1365 sparserevlog: yes yes yes
1294 sidedata: no no no
1366 sidedata: no no no
1367 copies-sdc: no no no
1295 plain-cl-delta: yes yes yes
1368 plain-cl-delta: yes yes yes
1296 compression: zlib zlib zlib
1369 compression: zlib zlib zlib
1297 compression-level: default default default
1370 compression-level: default default default
@@ -1317,6 +1390,7 b' upgrade from hgrc'
1317 generaldelta: yes yes yes
1390 generaldelta: yes yes yes
1318 sparserevlog: yes yes yes
1391 sparserevlog: yes yes yes
1319 sidedata: no no no
1392 sidedata: no no no
1393 copies-sdc: no no no
1320 plain-cl-delta: yes yes yes
1394 plain-cl-delta: yes yes yes
1321 compression: zstd zstd zlib
1395 compression: zstd zstd zlib
1322 compression-level: default default default
1396 compression-level: default default default
@@ -1344,6 +1418,7 b' upgrade'
1344 generaldelta: yes yes yes
1418 generaldelta: yes yes yes
1345 sparserevlog: yes yes yes
1419 sparserevlog: yes yes yes
1346 sidedata: yes no no
1420 sidedata: yes no no
1421 copies-sdc: no no no
1347 plain-cl-delta: yes yes yes
1422 plain-cl-delta: yes yes yes
1348 compression: zstd zstd zlib
1423 compression: zstd zstd zlib
1349 compression-level: default default default
1424 compression-level: default default default
@@ -1371,6 +1446,7 b' downgrade'
1371 generaldelta: yes yes yes
1446 generaldelta: yes yes yes
1372 sparserevlog: yes yes yes
1447 sparserevlog: yes yes yes
1373 sidedata: no no no
1448 sidedata: no no no
1449 copies-sdc: no no no
1374 plain-cl-delta: yes yes yes
1450 plain-cl-delta: yes yes yes
1375 compression: zstd zstd zlib
1451 compression: zstd zstd zlib
1376 compression-level: default default default
1452 compression-level: default default default
@@ -1398,6 +1474,7 b' upgrade from hgrc'
1398 generaldelta: yes yes yes
1474 generaldelta: yes yes yes
1399 sparserevlog: yes yes yes
1475 sparserevlog: yes yes yes
1400 sidedata: yes yes no
1476 sidedata: yes yes no
1477 copies-sdc: no no no
1401 plain-cl-delta: yes yes yes
1478 plain-cl-delta: yes yes yes
1402 compression: zstd zstd zlib
1479 compression: zstd zstd zlib
1403 compression-level: default default default
1480 compression-level: default default default
General Comments 0
You need to be logged in to leave comments. Login now