Show More
@@ -374,6 +374,21 b' class sidedata(requirementformatvariant)' | |||||
374 |
|
374 | |||
375 |
|
375 | |||
376 | @registerformatvariant |
|
376 | @registerformatvariant | |
|
377 | class persistentnodemap(requirementformatvariant): | |||
|
378 | name = b'persistent-nodemap' | |||
|
379 | ||||
|
380 | _requirement = localrepo.NODEMAP_REQUIREMENT | |||
|
381 | ||||
|
382 | default = False | |||
|
383 | ||||
|
384 | description = _( | |||
|
385 | b'persist the node -> rev mapping on disk to speedup lookup' | |||
|
386 | ) | |||
|
387 | ||||
|
388 | upgrademessage = _(b'Speedup revision lookup by node id.') | |||
|
389 | ||||
|
390 | ||||
|
391 | @registerformatvariant | |||
377 | class copiessdc(requirementformatvariant): |
|
392 | class copiessdc(requirementformatvariant): | |
378 | name = b'copies-sdc' |
|
393 | name = b'copies-sdc' | |
379 |
|
394 |
@@ -39,6 +39,7 b' Check that copies are recorded correctly' | |||||
39 | generaldelta: yes yes yes |
|
39 | generaldelta: yes yes yes | |
40 | sparserevlog: yes yes yes |
|
40 | sparserevlog: yes yes yes | |
41 | sidedata: yes yes no |
|
41 | sidedata: yes yes no | |
|
42 | persistent-nodemap: no no no | |||
42 | copies-sdc: yes yes no |
|
43 | copies-sdc: yes yes no | |
43 | plain-cl-delta: yes yes yes |
|
44 | plain-cl-delta: yes yes yes | |
44 | compression: zlib zlib zlib |
|
45 | compression: zlib zlib zlib | |
@@ -51,6 +52,7 b' Check that copies are recorded correctly' | |||||
51 | generaldelta: yes yes yes |
|
52 | generaldelta: yes yes yes | |
52 | sparserevlog: yes yes yes |
|
53 | sparserevlog: yes yes yes | |
53 | sidedata: no no no |
|
54 | sidedata: no no no | |
|
55 | persistent-nodemap: no no no | |||
54 | copies-sdc: no no no |
|
56 | copies-sdc: no no no | |
55 | plain-cl-delta: yes yes yes |
|
57 | plain-cl-delta: yes yes yes | |
56 | compression: zlib zlib zlib |
|
58 | compression: zlib zlib zlib | |
@@ -430,6 +432,7 b' downgrading (keeping some sidedata)' | |||||
430 | generaldelta: yes yes yes |
|
432 | generaldelta: yes yes yes | |
431 | sparserevlog: yes yes yes |
|
433 | sparserevlog: yes yes yes | |
432 | sidedata: yes yes no |
|
434 | sidedata: yes yes no | |
|
435 | persistent-nodemap: no no no | |||
433 | copies-sdc: yes yes no |
|
436 | copies-sdc: yes yes no | |
434 | plain-cl-delta: yes yes yes |
|
437 | plain-cl-delta: yes yes yes | |
435 | compression: zlib zlib zlib |
|
438 | compression: zlib zlib zlib | |
@@ -454,6 +457,7 b' downgrading (keeping some sidedata)' | |||||
454 | generaldelta: yes yes yes |
|
457 | generaldelta: yes yes yes | |
455 | sparserevlog: yes yes yes |
|
458 | sparserevlog: yes yes yes | |
456 | sidedata: yes yes no |
|
459 | sidedata: yes yes no | |
|
460 | persistent-nodemap: no no no | |||
457 | copies-sdc: no no no |
|
461 | copies-sdc: no no no | |
458 | plain-cl-delta: yes yes yes |
|
462 | plain-cl-delta: yes yes yes | |
459 | compression: zlib zlib zlib |
|
463 | compression: zlib zlib zlib | |
@@ -476,6 +480,7 b' upgrading' | |||||
476 | generaldelta: yes yes yes |
|
480 | generaldelta: yes yes yes | |
477 | sparserevlog: yes yes yes |
|
481 | sparserevlog: yes yes yes | |
478 | sidedata: yes yes no |
|
482 | sidedata: yes yes no | |
|
483 | persistent-nodemap: no no no | |||
479 | copies-sdc: yes yes no |
|
484 | copies-sdc: yes yes no | |
480 | plain-cl-delta: yes yes yes |
|
485 | plain-cl-delta: yes yes yes | |
481 | compression: zlib zlib zlib |
|
486 | compression: zlib zlib zlib |
@@ -10,6 +10,18 b' Test the persistent on-disk nodemap' | |||||
10 | > EOF |
|
10 | > EOF | |
11 | $ hg init test-repo |
|
11 | $ hg init test-repo | |
12 | $ cd test-repo |
|
12 | $ cd test-repo | |
|
13 | $ hg debugformat | |||
|
14 | format-variant repo | |||
|
15 | fncache: yes | |||
|
16 | dotencode: yes | |||
|
17 | generaldelta: yes | |||
|
18 | sparserevlog: yes | |||
|
19 | sidedata: no | |||
|
20 | persistent-nodemap: yes | |||
|
21 | copies-sdc: no | |||
|
22 | plain-cl-delta: yes | |||
|
23 | compression: zlib | |||
|
24 | compression-level: default | |||
13 | $ hg debugbuilddag .+5000 --new-file --config "storage.revlog.nodemap.mode=warn" |
|
25 | $ hg debugbuilddag .+5000 --new-file --config "storage.revlog.nodemap.mode=warn" | |
14 | persistent nodemap in strict mode without efficient method (no-rust no-pure !) |
|
26 | persistent nodemap in strict mode without efficient method (no-rust no-pure !) | |
15 | persistent nodemap in strict mode without efficient method (no-rust no-pure !) |
|
27 | persistent nodemap in strict mode without efficient method (no-rust no-pure !) |
@@ -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 | persistent-nodemap: no no no | |||
59 | copies-sdc: no no no |
|
60 | copies-sdc: no no no | |
60 | plain-cl-delta: yes yes yes |
|
61 | plain-cl-delta: yes yes yes | |
61 | compression: zlib zlib zlib |
|
62 | compression: zlib zlib zlib | |
@@ -67,6 +68,7 b' Check that we can upgrade to sidedata' | |||||
67 | generaldelta: yes yes yes |
|
68 | generaldelta: yes yes yes | |
68 | sparserevlog: yes yes yes |
|
69 | sparserevlog: yes yes yes | |
69 | sidedata: no yes no |
|
70 | sidedata: no yes no | |
|
71 | persistent-nodemap: no no no | |||
70 | copies-sdc: 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 | |
@@ -84,6 +86,7 b' Check that we can downgrade from sidedat' | |||||
84 | generaldelta: yes yes yes |
|
86 | generaldelta: yes yes yes | |
85 | sparserevlog: yes yes yes |
|
87 | sparserevlog: yes yes yes | |
86 | sidedata: yes no no |
|
88 | sidedata: yes no no | |
|
89 | persistent-nodemap: no no no | |||
87 | copies-sdc: no no no |
|
90 | copies-sdc: no no no | |
88 | plain-cl-delta: yes yes yes |
|
91 | plain-cl-delta: yes yes yes | |
89 | compression: zlib zlib zlib |
|
92 | compression: zlib zlib zlib | |
@@ -95,6 +98,7 b' Check that we can downgrade from sidedat' | |||||
95 | generaldelta: yes yes yes |
|
98 | generaldelta: yes yes yes | |
96 | sparserevlog: yes yes yes |
|
99 | sparserevlog: yes yes yes | |
97 | sidedata: yes no no |
|
100 | sidedata: yes no no | |
|
101 | persistent-nodemap: no no no | |||
98 | copies-sdc: no no no |
|
102 | copies-sdc: no no no | |
99 | plain-cl-delta: yes yes yes |
|
103 | plain-cl-delta: yes yes yes | |
100 | compression: zlib zlib zlib |
|
104 | compression: zlib zlib zlib |
@@ -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 | persistent-nodemap: no | |||
61 | copies-sdc: no |
|
62 | copies-sdc: no | |
62 | plain-cl-delta: yes |
|
63 | plain-cl-delta: yes | |
63 | compression: zlib |
|
64 | compression: zlib | |
@@ -69,6 +70,7 b' An upgrade of a repository created with ' | |||||
69 | generaldelta: yes yes yes |
|
70 | generaldelta: yes yes yes | |
70 | sparserevlog: yes yes yes |
|
71 | sparserevlog: yes yes yes | |
71 | sidedata: no no no |
|
72 | sidedata: no no no | |
|
73 | persistent-nodemap: no no no | |||
72 | copies-sdc: no no no |
|
74 | copies-sdc: no no no | |
73 | plain-cl-delta: yes yes yes |
|
75 | plain-cl-delta: yes yes yes | |
74 | compression: zlib zlib zlib |
|
76 | compression: zlib zlib zlib | |
@@ -80,6 +82,7 b' An upgrade of a repository created with ' | |||||
80 | generaldelta: yes yes yes |
|
82 | generaldelta: yes yes yes | |
81 | sparserevlog: yes yes yes |
|
83 | sparserevlog: yes yes yes | |
82 | sidedata: no no no |
|
84 | sidedata: no no no | |
|
85 | persistent-nodemap: no no no | |||
83 | copies-sdc: no no no |
|
86 | copies-sdc: no no no | |
84 | plain-cl-delta: yes yes yes |
|
87 | plain-cl-delta: yes yes yes | |
85 | compression: zlib zlib zlib |
|
88 | compression: zlib zlib zlib | |
@@ -91,6 +94,7 b' An upgrade of a repository created with ' | |||||
91 | [formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] |
|
94 | [formatvariant.name.uptodate|generaldelta: ][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] |
|
95 | [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] | |
93 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
96 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
|
97 | [formatvariant.name.uptodate|persistent-nodemap:][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] |
|
98 | [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
95 | [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] |
|
99 | [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] | |
96 | [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib] |
|
100 | [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib] | |
@@ -130,6 +134,12 b' An upgrade of a repository created with ' | |||||
130 | { |
|
134 | { | |
131 | "config": false, |
|
135 | "config": false, | |
132 | "default": false, |
|
136 | "default": false, | |
|
137 | "name": "persistent-nodemap", | |||
|
138 | "repo": false | |||
|
139 | }, | |||
|
140 | { | |||
|
141 | "config": false, | |||
|
142 | "default": false, | |||
133 | "name": "copies-sdc", |
|
143 | "name": "copies-sdc", | |
134 | "repo": false |
|
144 | "repo": false | |
135 | }, |
|
145 | }, | |
@@ -258,6 +268,7 b' Various sub-optimal detections work' | |||||
258 | generaldelta: no |
|
268 | generaldelta: no | |
259 | sparserevlog: no |
|
269 | sparserevlog: no | |
260 | sidedata: no |
|
270 | sidedata: no | |
|
271 | persistent-nodemap: no | |||
261 | copies-sdc: no |
|
272 | copies-sdc: no | |
262 | plain-cl-delta: yes |
|
273 | plain-cl-delta: yes | |
263 | compression: zlib |
|
274 | compression: zlib | |
@@ -269,6 +280,7 b' Various sub-optimal detections work' | |||||
269 | generaldelta: no yes yes |
|
280 | generaldelta: no yes yes | |
270 | sparserevlog: no yes yes |
|
281 | sparserevlog: no yes yes | |
271 | sidedata: no no no |
|
282 | sidedata: no no no | |
|
283 | persistent-nodemap: no no no | |||
272 | copies-sdc: no no no |
|
284 | copies-sdc: no no no | |
273 | plain-cl-delta: yes yes yes |
|
285 | plain-cl-delta: yes yes yes | |
274 | compression: zlib zlib zlib |
|
286 | compression: zlib zlib zlib | |
@@ -280,6 +292,7 b' Various sub-optimal detections work' | |||||
280 | generaldelta: no no yes |
|
292 | generaldelta: no no yes | |
281 | sparserevlog: no no yes |
|
293 | sparserevlog: no no yes | |
282 | sidedata: no no no |
|
294 | sidedata: no no no | |
|
295 | persistent-nodemap: no no no | |||
283 | copies-sdc: no no no |
|
296 | copies-sdc: no no no | |
284 | plain-cl-delta: yes yes yes |
|
297 | plain-cl-delta: yes yes yes | |
285 | compression: zlib zlib zlib |
|
298 | compression: zlib zlib zlib | |
@@ -291,6 +304,7 b' Various sub-optimal detections work' | |||||
291 | [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] |
|
304 | [formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] | |
292 | [formatvariant.name.mismatchdefault|sparserevlog: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] |
|
305 | [formatvariant.name.mismatchdefault|sparserevlog: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes] | |
293 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
306 | [formatvariant.name.uptodate|sidedata: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
|
307 | [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |||
294 | [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] |
|
308 | [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] | |
295 | [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] |
|
309 | [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes] | |
296 | [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib] |
|
310 | [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib] | |
@@ -1277,6 +1291,7 b' upgrade' | |||||
1277 | generaldelta: yes yes yes |
|
1291 | generaldelta: yes yes yes | |
1278 | sparserevlog: yes yes yes |
|
1292 | sparserevlog: yes yes yes | |
1279 | sidedata: no no no |
|
1293 | sidedata: no no no | |
|
1294 | persistent-nodemap: no no no | |||
1280 | copies-sdc: no no no |
|
1295 | copies-sdc: no no no | |
1281 | plain-cl-delta: yes yes yes |
|
1296 | plain-cl-delta: yes yes yes | |
1282 | compression: zstd zlib zlib |
|
1297 | compression: zstd zlib zlib | |
@@ -1306,6 +1321,7 b' downgrade' | |||||
1306 | generaldelta: yes yes yes |
|
1321 | generaldelta: yes yes yes | |
1307 | sparserevlog: yes yes yes |
|
1322 | sparserevlog: yes yes yes | |
1308 | sidedata: no no no |
|
1323 | sidedata: no no no | |
|
1324 | persistent-nodemap: no no no | |||
1309 | copies-sdc: no no no |
|
1325 | copies-sdc: no no no | |
1310 | plain-cl-delta: yes yes yes |
|
1326 | plain-cl-delta: yes yes yes | |
1311 | compression: zlib zlib zlib |
|
1327 | compression: zlib zlib zlib | |
@@ -1338,6 +1354,7 b' upgrade from hgrc' | |||||
1338 | generaldelta: yes yes yes |
|
1354 | generaldelta: yes yes yes | |
1339 | sparserevlog: yes yes yes |
|
1355 | sparserevlog: yes yes yes | |
1340 | sidedata: no no no |
|
1356 | sidedata: no no no | |
|
1357 | persistent-nodemap: no no no | |||
1341 | copies-sdc: no no no |
|
1358 | copies-sdc: no no no | |
1342 | plain-cl-delta: yes yes yes |
|
1359 | plain-cl-delta: yes yes yes | |
1343 | compression: zstd zstd zlib |
|
1360 | compression: zstd zstd zlib | |
@@ -1374,10 +1391,11 b' upgrade' | |||||
1374 | generaldelta: yes yes yes |
|
1391 | generaldelta: yes yes yes | |
1375 | sparserevlog: yes yes yes |
|
1392 | sparserevlog: yes yes yes | |
1376 | sidedata: yes no no |
|
1393 | sidedata: yes no no | |
|
1394 | persistent-nodemap: no no no | |||
1377 | copies-sdc: no no no |
|
1395 | copies-sdc: no no no | |
1378 | plain-cl-delta: yes yes yes |
|
1396 | plain-cl-delta: yes yes yes | |
|
1397 | compression: zlib zlib zlib (no-zstd !) | |||
1379 | compression: zstd zstd zlib (zstd !) |
|
1398 | compression: zstd zstd zlib (zstd !) | |
1380 | compression: zlib zlib zlib (no-zstd !) |
|
|||
1381 | compression-level: default default default |
|
1399 | compression-level: default default default | |
1382 | $ cat .hg/requires |
|
1400 | $ cat .hg/requires | |
1383 | dotencode |
|
1401 | dotencode | |
@@ -1410,10 +1428,11 b' downgrade' | |||||
1410 | generaldelta: yes yes yes |
|
1428 | generaldelta: yes yes yes | |
1411 | sparserevlog: yes yes yes |
|
1429 | sparserevlog: yes yes yes | |
1412 | sidedata: no no no |
|
1430 | sidedata: no no no | |
|
1431 | persistent-nodemap: no no no | |||
1413 | copies-sdc: no no no |
|
1432 | copies-sdc: no no no | |
1414 | plain-cl-delta: yes yes yes |
|
1433 | plain-cl-delta: yes yes yes | |
|
1434 | compression: zlib zlib zlib (no-zstd !) | |||
1415 | compression: zstd zstd zlib (zstd !) |
|
1435 | compression: zstd zstd zlib (zstd !) | |
1416 | compression: zlib zlib zlib (no-zstd !) |
|
|||
1417 | compression-level: default default default |
|
1436 | compression-level: default default default | |
1418 | $ cat .hg/requires |
|
1437 | $ cat .hg/requires | |
1419 | dotencode |
|
1438 | dotencode | |
@@ -1446,10 +1465,11 b' upgrade from hgrc' | |||||
1446 | generaldelta: yes yes yes |
|
1465 | generaldelta: yes yes yes | |
1447 | sparserevlog: yes yes yes |
|
1466 | sparserevlog: yes yes yes | |
1448 | sidedata: yes yes no |
|
1467 | sidedata: yes yes no | |
|
1468 | persistent-nodemap: no no no | |||
1449 | copies-sdc: no no no |
|
1469 | copies-sdc: no no no | |
1450 | plain-cl-delta: yes yes yes |
|
1470 | plain-cl-delta: yes yes yes | |
|
1471 | compression: zlib zlib zlib (no-zstd !) | |||
1451 | compression: zstd zstd zlib (zstd !) |
|
1472 | compression: zstd zstd zlib (zstd !) | |
1452 | compression: zlib zlib zlib (no-zstd !) |
|
|||
1453 | compression-level: default default default |
|
1473 | compression-level: default default default | |
1454 | $ cat .hg/requires |
|
1474 | $ cat .hg/requires | |
1455 | dotencode |
|
1475 | dotencode |
General Comments 0
You need to be logged in to leave comments.
Login now