Show More
@@ -325,27 +325,6 b' class sparserevlog(requirementformatvari' | |||||
325 |
|
325 | |||
326 |
|
326 | |||
327 | @registerformatvariant |
|
327 | @registerformatvariant | |
328 | class sidedata(requirementformatvariant): |
|
|||
329 | name = b'sidedata' |
|
|||
330 |
|
||||
331 | _requirement = requirements.REVLOGV2_REQUIREMENT |
|
|||
332 |
|
||||
333 | default = False |
|
|||
334 |
|
||||
335 | description = _( |
|
|||
336 | b'Allows storage of extra data alongside a revision, ' |
|
|||
337 | b'unlocking various caching options.' |
|
|||
338 | ) |
|
|||
339 |
|
||||
340 | upgrademessage = _(b'Allows storage of extra data alongside a revision.') |
|
|||
341 |
|
||||
342 | @classmethod |
|
|||
343 | def fromrepo(cls, repo): |
|
|||
344 | assert cls._requirement is not None |
|
|||
345 | return cls._requirement in repo.requirements |
|
|||
346 |
|
||||
347 |
|
||||
348 | @registerformatvariant |
|
|||
349 | class persistentnodemap(requirementformatvariant): |
|
328 | class persistentnodemap(requirementformatvariant): | |
350 | name = b'persistent-nodemap' |
|
329 | name = b'persistent-nodemap' | |
351 |
|
330 |
@@ -1466,7 +1466,6 b' We upgrade a repository that is not usin' | |||||
1466 | generaldelta: yes yes yes |
|
1466 | generaldelta: yes yes yes | |
1467 | share-safe: no no no |
|
1467 | share-safe: no no no | |
1468 | sparserevlog: yes yes yes |
|
1468 | sparserevlog: yes yes yes | |
1469 | sidedata: no yes no |
|
|||
1470 | persistent-nodemap: no no no |
|
1469 | persistent-nodemap: no no no | |
1471 | copies-sdc: no yes no |
|
1470 | copies-sdc: no yes no | |
1472 | revlog-v2: no yes no |
|
1471 | revlog-v2: no yes no | |
@@ -1506,7 +1505,6 b' We upgrade a repository that is not usin' | |||||
1506 | generaldelta: yes yes yes |
|
1505 | generaldelta: yes yes yes | |
1507 | share-safe: no no no |
|
1506 | share-safe: no no no | |
1508 | sparserevlog: yes yes yes |
|
1507 | sparserevlog: yes yes yes | |
1509 | sidedata: no yes no |
|
|||
1510 | persistent-nodemap: no no no |
|
1508 | persistent-nodemap: no no no | |
1511 | copies-sdc: no yes no |
|
1509 | copies-sdc: no yes no | |
1512 | revlog-v2: no yes no |
|
1510 | revlog-v2: no yes no |
@@ -39,7 +39,6 b' Check that copies are recorded correctly' | |||||
39 | generaldelta: yes yes yes |
|
39 | generaldelta: yes yes yes | |
40 | share-safe: no no no |
|
40 | share-safe: no no no | |
41 | sparserevlog: yes yes yes |
|
41 | sparserevlog: yes yes yes | |
42 | sidedata: yes yes no |
|
|||
43 | persistent-nodemap: no no no |
|
42 | persistent-nodemap: no no no | |
44 | copies-sdc: yes yes no |
|
43 | copies-sdc: yes yes no | |
45 | revlog-v2: yes yes no |
|
44 | revlog-v2: yes yes no | |
@@ -54,7 +53,6 b' Check that copies are recorded correctly' | |||||
54 | generaldelta: yes yes yes |
|
53 | generaldelta: yes yes yes | |
55 | share-safe: no no no |
|
54 | share-safe: no no no | |
56 | sparserevlog: yes yes yes |
|
55 | sparserevlog: yes yes yes | |
57 | sidedata: no no no |
|
|||
58 | persistent-nodemap: no no no |
|
56 | persistent-nodemap: no no no | |
59 | copies-sdc: no no no |
|
57 | copies-sdc: no no no | |
60 | revlog-v2: no no no |
|
58 | revlog-v2: no no no | |
@@ -426,7 +424,6 b' downgrading (keeping some sidedata)' | |||||
426 | generaldelta: yes yes yes |
|
424 | generaldelta: yes yes yes | |
427 | share-safe: no no no |
|
425 | share-safe: no no no | |
428 | sparserevlog: yes yes yes |
|
426 | sparserevlog: yes yes yes | |
429 | sidedata: yes yes no |
|
|||
430 | persistent-nodemap: no no no |
|
427 | persistent-nodemap: no no no | |
431 | copies-sdc: yes yes no |
|
428 | copies-sdc: yes yes no | |
432 | revlog-v2: yes yes no |
|
429 | revlog-v2: yes yes no | |
@@ -453,7 +450,6 b' downgrading (keeping some sidedata)' | |||||
453 | generaldelta: yes yes yes |
|
450 | generaldelta: yes yes yes | |
454 | share-safe: no no no |
|
451 | share-safe: no no no | |
455 | sparserevlog: yes yes yes |
|
452 | sparserevlog: yes yes yes | |
456 | sidedata: yes yes no |
|
|||
457 | persistent-nodemap: no no no |
|
453 | persistent-nodemap: no no no | |
458 | copies-sdc: no no no |
|
454 | copies-sdc: no no no | |
459 | revlog-v2: yes yes no |
|
455 | revlog-v2: yes yes no | |
@@ -482,7 +478,6 b' upgrading' | |||||
482 | generaldelta: yes yes yes |
|
478 | generaldelta: yes yes yes | |
483 | share-safe: no no no |
|
479 | share-safe: no no no | |
484 | sparserevlog: yes yes yes |
|
480 | sparserevlog: yes yes yes | |
485 | sidedata: yes yes no |
|
|||
486 | persistent-nodemap: no no no |
|
481 | persistent-nodemap: no no no | |
487 | copies-sdc: yes yes no |
|
482 | copies-sdc: yes yes no | |
488 | revlog-v2: yes yes no |
|
483 | revlog-v2: yes yes no |
@@ -56,7 +56,6 b' As a result, -1 passed from Rust for the' | |||||
56 | generaldelta: yes |
|
56 | generaldelta: yes | |
57 | share-safe: no |
|
57 | share-safe: no | |
58 | sparserevlog: yes |
|
58 | sparserevlog: yes | |
59 | sidedata: no |
|
|||
60 | persistent-nodemap: yes |
|
59 | persistent-nodemap: yes | |
61 | copies-sdc: no |
|
60 | copies-sdc: no | |
62 | revlog-v2: no |
|
61 | revlog-v2: no | |
@@ -576,7 +575,6 b' downgrading' | |||||
576 | generaldelta: yes yes yes |
|
575 | generaldelta: yes yes yes | |
577 | share-safe: no no no |
|
576 | share-safe: no no no | |
578 | sparserevlog: yes yes yes |
|
577 | sparserevlog: yes yes yes | |
579 | sidedata: no no no |
|
|||
580 | persistent-nodemap: yes no no |
|
578 | persistent-nodemap: yes no no | |
581 | copies-sdc: no no no |
|
579 | copies-sdc: no no no | |
582 | revlog-v2: no no no |
|
580 | revlog-v2: no no no | |
@@ -622,7 +620,6 b' upgrading' | |||||
622 | generaldelta: yes yes yes |
|
620 | generaldelta: yes yes yes | |
623 | share-safe: no no no |
|
621 | share-safe: no no no | |
624 | sparserevlog: yes yes yes |
|
622 | sparserevlog: yes yes yes | |
625 | sidedata: no no no |
|
|||
626 | persistent-nodemap: no yes no |
|
623 | persistent-nodemap: no yes no | |
627 | copies-sdc: no no no |
|
624 | copies-sdc: no no no | |
628 | revlog-v2: no no no |
|
625 | revlog-v2: no no no |
@@ -56,7 +56,6 b' Check that we can upgrade to sidedata' | |||||
56 | generaldelta: yes yes yes |
|
56 | generaldelta: yes yes yes | |
57 | share-safe: no no no |
|
57 | share-safe: no no no | |
58 | sparserevlog: yes yes yes |
|
58 | sparserevlog: yes yes yes | |
59 | sidedata: no no no |
|
|||
60 | persistent-nodemap: no no no |
|
59 | persistent-nodemap: no no no | |
61 | copies-sdc: no no no |
|
60 | copies-sdc: no no no | |
62 | revlog-v2: no no no |
|
61 | revlog-v2: no no no | |
@@ -70,7 +69,6 b' Check that we can upgrade to sidedata' | |||||
70 | generaldelta: yes yes yes |
|
69 | generaldelta: yes yes yes | |
71 | share-safe: no no no |
|
70 | share-safe: no no no | |
72 | sparserevlog: yes yes yes |
|
71 | sparserevlog: yes yes yes | |
73 | sidedata: no yes no |
|
|||
74 | persistent-nodemap: no no no |
|
72 | persistent-nodemap: no no no | |
75 | copies-sdc: no no no |
|
73 | copies-sdc: no no no | |
76 | revlog-v2: no yes no |
|
74 | revlog-v2: no yes no | |
@@ -90,7 +88,6 b' Check that we can downgrade from sidedat' | |||||
90 | generaldelta: yes yes yes |
|
88 | generaldelta: yes yes yes | |
91 | share-safe: no no no |
|
89 | share-safe: no no no | |
92 | sparserevlog: yes yes yes |
|
90 | sparserevlog: yes yes yes | |
93 | sidedata: yes no no |
|
|||
94 | persistent-nodemap: no no no |
|
91 | persistent-nodemap: no no no | |
95 | copies-sdc: no no no |
|
92 | copies-sdc: no no no | |
96 | revlog-v2: yes no no |
|
93 | revlog-v2: yes no no | |
@@ -104,7 +101,6 b' Check that we can downgrade from sidedat' | |||||
104 | generaldelta: yes yes yes |
|
101 | generaldelta: yes yes yes | |
105 | share-safe: no no no |
|
102 | share-safe: no no no | |
106 | sparserevlog: yes yes yes |
|
103 | sparserevlog: yes yes yes | |
107 | sidedata: yes no no |
|
|||
108 | persistent-nodemap: no no no |
|
104 | persistent-nodemap: no no no | |
109 | copies-sdc: no no no |
|
105 | copies-sdc: no no no | |
110 | revlog-v2: yes no no |
|
106 | revlog-v2: yes no no |
@@ -58,7 +58,6 b' An upgrade of a repository created with ' | |||||
58 | generaldelta: yes |
|
58 | generaldelta: yes | |
59 | share-safe: no |
|
59 | share-safe: no | |
60 | sparserevlog: yes |
|
60 | sparserevlog: yes | |
61 | sidedata: no |
|
|||
62 | persistent-nodemap: no |
|
61 | persistent-nodemap: no | |
63 | copies-sdc: no |
|
62 | copies-sdc: no | |
64 | revlog-v2: no |
|
63 | revlog-v2: no | |
@@ -72,7 +71,6 b' An upgrade of a repository created with ' | |||||
72 | generaldelta: yes yes yes |
|
71 | generaldelta: yes yes yes | |
73 | share-safe: no no no |
|
72 | share-safe: no no no | |
74 | sparserevlog: yes yes yes |
|
73 | sparserevlog: yes yes yes | |
75 | sidedata: no no no |
|
|||
76 | persistent-nodemap: no no no |
|
74 | persistent-nodemap: no no no | |
77 | copies-sdc: no no no |
|
75 | copies-sdc: no no no | |
78 | revlog-v2: no no no |
|
76 | revlog-v2: no no no | |
@@ -86,7 +84,6 b' An upgrade of a repository created with ' | |||||
86 | generaldelta: yes yes yes |
|
84 | generaldelta: yes yes yes | |
87 | share-safe: no no no |
|
85 | share-safe: no no no | |
88 | sparserevlog: yes yes yes |
|
86 | sparserevlog: yes yes yes | |
89 | sidedata: no no no |
|
|||
90 | persistent-nodemap: no no no |
|
87 | persistent-nodemap: no no no | |
91 | copies-sdc: no no no |
|
88 | copies-sdc: no no no | |
92 | revlog-v2: no no no |
|
89 | revlog-v2: no no no | |
@@ -100,7 +97,6 b' An upgrade of a repository created with ' | |||||
100 | [formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] |
|
97 | [formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] | |
101 | [formatvariant.name.uptodate|share-safe: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
98 | [formatvariant.name.uptodate|share-safe: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
102 | [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] |
|
99 | [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] | |
103 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
|||
104 | [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
100 | [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
105 | [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
101 | [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
106 | [formatvariant.name.uptodate|revlog-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
102 | [formatvariant.name.uptodate|revlog-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
@@ -142,12 +138,6 b' An upgrade of a repository created with ' | |||||
142 | { |
|
138 | { | |
143 | "config": false, |
|
139 | "config": false, | |
144 | "default": false, |
|
140 | "default": false, | |
145 | "name": "sidedata", |
|
|||
146 | "repo": false |
|
|||
147 | }, |
|
|||
148 | { |
|
|||
149 | "config": false, |
|
|||
150 | "default": false, |
|
|||
151 | "name": "persistent-nodemap", |
|
141 | "name": "persistent-nodemap", | |
152 | "repo": false |
|
142 | "repo": false | |
153 | }, |
|
143 | }, | |
@@ -313,7 +303,6 b' Various sub-optimal detections work' | |||||
313 | generaldelta: no |
|
303 | generaldelta: no | |
314 | share-safe: no |
|
304 | share-safe: no | |
315 | sparserevlog: no |
|
305 | sparserevlog: no | |
316 | sidedata: no |
|
|||
317 | persistent-nodemap: no |
|
306 | persistent-nodemap: no | |
318 | copies-sdc: no |
|
307 | copies-sdc: no | |
319 | revlog-v2: no |
|
308 | revlog-v2: no | |
@@ -327,7 +316,6 b' Various sub-optimal detections work' | |||||
327 | generaldelta: no yes yes |
|
316 | generaldelta: no yes yes | |
328 | share-safe: no no no |
|
317 | share-safe: no no no | |
329 | sparserevlog: no yes yes |
|
318 | sparserevlog: no yes yes | |
330 | sidedata: no no no |
|
|||
331 | persistent-nodemap: no no no |
|
319 | persistent-nodemap: no no no | |
332 | copies-sdc: no no no |
|
320 | copies-sdc: no no no | |
333 | revlog-v2: no no no |
|
321 | revlog-v2: no no no | |
@@ -341,7 +329,6 b' Various sub-optimal detections work' | |||||
341 | generaldelta: no no yes |
|
329 | generaldelta: no no yes | |
342 | share-safe: no no no |
|
330 | share-safe: no no no | |
343 | sparserevlog: no no yes |
|
331 | sparserevlog: no no yes | |
344 | sidedata: no no no |
|
|||
345 | persistent-nodemap: no no no |
|
332 | persistent-nodemap: no no no | |
346 | copies-sdc: no no no |
|
333 | copies-sdc: no no no | |
347 | revlog-v2: no no no |
|
334 | revlog-v2: no no no | |
@@ -355,7 +342,6 b' Various sub-optimal detections work' | |||||
355 | [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] |
|
342 | [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] | |
356 | [formatvariant.name.uptodate|share-safe: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
343 | [formatvariant.name.uptodate|share-safe: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
357 | [formatvariant.name.mismatchdefault|sparserevlog: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] |
|
344 | [formatvariant.name.mismatchdefault|sparserevlog: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] | |
358 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
|||
359 | [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
345 | [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
360 | [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
346 | [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
361 | [formatvariant.name.uptodate|revlog-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
347 | [formatvariant.name.uptodate|revlog-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
@@ -1299,7 +1285,6 b' upgrade' | |||||
1299 | generaldelta: yes yes yes |
|
1285 | generaldelta: yes yes yes | |
1300 | share-safe: no no no |
|
1286 | share-safe: no no no | |
1301 | sparserevlog: yes yes yes |
|
1287 | sparserevlog: yes yes yes | |
1302 | sidedata: no no no |
|
|||
1303 | persistent-nodemap: no no no |
|
1288 | persistent-nodemap: no no no | |
1304 | copies-sdc: no no no |
|
1289 | copies-sdc: no no no | |
1305 | revlog-v2: no no no |
|
1290 | revlog-v2: no no no | |
@@ -1336,7 +1321,6 b' downgrade' | |||||
1336 | generaldelta: yes yes yes |
|
1321 | generaldelta: yes yes yes | |
1337 | share-safe: no no no |
|
1322 | share-safe: no no no | |
1338 | sparserevlog: yes yes yes |
|
1323 | sparserevlog: yes yes yes | |
1339 | sidedata: no no no |
|
|||
1340 | persistent-nodemap: no no no |
|
1324 | persistent-nodemap: no no no | |
1341 | copies-sdc: no no no |
|
1325 | copies-sdc: no no no | |
1342 | revlog-v2: no no no |
|
1326 | revlog-v2: no no no | |
@@ -1376,7 +1360,6 b' upgrade from hgrc' | |||||
1376 | generaldelta: yes yes yes |
|
1360 | generaldelta: yes yes yes | |
1377 | share-safe: no no no |
|
1361 | share-safe: no no no | |
1378 | sparserevlog: yes yes yes |
|
1362 | sparserevlog: yes yes yes | |
1379 | sidedata: no no no |
|
|||
1380 | persistent-nodemap: no no no |
|
1363 | persistent-nodemap: no no no | |
1381 | copies-sdc: no no no |
|
1364 | copies-sdc: no no no | |
1382 | revlog-v2: no no no |
|
1365 | revlog-v2: no no no | |
@@ -1421,7 +1404,6 b' upgrade' | |||||
1421 | generaldelta: yes yes yes |
|
1404 | generaldelta: yes yes yes | |
1422 | share-safe: no no no |
|
1405 | share-safe: no no no | |
1423 | sparserevlog: yes yes yes |
|
1406 | sparserevlog: yes yes yes | |
1424 | sidedata: yes no no |
|
|||
1425 | persistent-nodemap: no no no |
|
1407 | persistent-nodemap: no no no | |
1426 | copies-sdc: no no no |
|
1408 | copies-sdc: no no no | |
1427 | revlog-v2: yes no no |
|
1409 | revlog-v2: yes no no | |
@@ -1466,7 +1448,6 b' downgrade' | |||||
1466 | generaldelta: yes yes yes |
|
1448 | generaldelta: yes yes yes | |
1467 | share-safe: no no no |
|
1449 | share-safe: no no no | |
1468 | sparserevlog: yes yes yes |
|
1450 | sparserevlog: yes yes yes | |
1469 | sidedata: no no no |
|
|||
1470 | persistent-nodemap: no no no |
|
1451 | persistent-nodemap: no no no | |
1471 | copies-sdc: no no no |
|
1452 | copies-sdc: no no no | |
1472 | revlog-v2: no no no |
|
1453 | revlog-v2: no no no | |
@@ -1511,7 +1492,6 b' upgrade from hgrc' | |||||
1511 | generaldelta: yes yes yes |
|
1492 | generaldelta: yes yes yes | |
1512 | share-safe: no no no |
|
1493 | share-safe: no no no | |
1513 | sparserevlog: yes yes yes |
|
1494 | sparserevlog: yes yes yes | |
1514 | sidedata: yes yes no |
|
|||
1515 | persistent-nodemap: no no no |
|
1495 | persistent-nodemap: no no no | |
1516 | copies-sdc: no no no |
|
1496 | copies-sdc: no no no | |
1517 | revlog-v2: yes yes no |
|
1497 | revlog-v2: yes yes no |
General Comments 0
You need to be logged in to leave comments.
Login now