Show More
@@ -1473,22 +1473,10 b' coreconfigitem(' | |||||
1473 | b'usestore', |
|
1473 | b'usestore', | |
1474 | default=True, |
|
1474 | default=True, | |
1475 | ) |
|
1475 | ) | |
1476 |
|
||||
1477 |
|
||||
1478 | def _persistent_nodemap_default(): |
|
|||
1479 | """compute `use-persistent-nodemap` default value |
|
|||
1480 |
|
||||
1481 | The feature is disabled unless a fast implementation is available. |
|
|||
1482 | """ |
|
|||
1483 | from . import policy |
|
|||
1484 |
|
||||
1485 | return policy.importrust('revlog') is not None |
|
|||
1486 |
|
||||
1487 |
|
||||
1488 | coreconfigitem( |
|
1476 | coreconfigitem( | |
1489 | b'format', |
|
1477 | b'format', | |
1490 | b'use-persistent-nodemap', |
|
1478 | b'use-persistent-nodemap', | |
1491 |
default= |
|
1479 | default=dynamicdefault, | |
1492 | ) |
|
1480 | ) | |
1493 | coreconfigitem( |
|
1481 | coreconfigitem( | |
1494 | b'format', |
|
1482 | b'format', |
@@ -58,6 +58,7 b' from . import (' | |||||
58 | obsolete, |
|
58 | obsolete, | |
59 | pathutil, |
|
59 | pathutil, | |
60 | phases, |
|
60 | phases, | |
|
61 | policy, | |||
61 | pushkey, |
|
62 | pushkey, | |
62 | pycompat, |
|
63 | pycompat, | |
63 | rcutil, |
|
64 | rcutil, | |
@@ -3763,7 +3764,11 b' def newreporequirements(ui, createopts):' | |||||
3763 | if ui.configbool(b'format', b'bookmarks-in-store'): |
|
3764 | if ui.configbool(b'format', b'bookmarks-in-store'): | |
3764 | requirements.add(requirementsmod.BOOKMARKS_IN_STORE_REQUIREMENT) |
|
3765 | requirements.add(requirementsmod.BOOKMARKS_IN_STORE_REQUIREMENT) | |
3765 |
|
3766 | |||
3766 | if ui.configbool(b'format', b'use-persistent-nodemap'): |
|
3767 | # The feature is disabled unless a fast implementation is available. | |
|
3768 | persistent_nodemap_default = policy.importrust('revlog') is not None | |||
|
3769 | if ui.configbool( | |||
|
3770 | b'format', b'use-persistent-nodemap', persistent_nodemap_default | |||
|
3771 | ): | |||
3767 | requirements.add(requirementsmod.NODEMAP_REQUIREMENT) |
|
3772 | requirements.add(requirementsmod.NODEMAP_REQUIREMENT) | |
3768 |
|
3773 | |||
3769 | # if share-safe is enabled, let's create the new repository with the new |
|
3774 | # if share-safe is enabled, let's create the new repository with the new |
General Comments 0
You need to be logged in to leave comments.
Login now