Show More
@@ -944,9 +944,8 b' def makestore(requirements, path, vfstyp' | |||||
944 | """Construct a storage object for a repository.""" |
|
944 | """Construct a storage object for a repository.""" | |
945 | if b'store' in requirements: |
|
945 | if b'store' in requirements: | |
946 | if b'fncache' in requirements: |
|
946 | if b'fncache' in requirements: | |
947 | return storemod.fncachestore( |
|
947 | dotencode = requirementsmod.DOTENCODE_REQUIREMENT in requirements | |
948 | path, vfstype, b'dotencode' in requirements |
|
948 | return storemod.fncachestore(path, vfstype, dotencode) | |
949 | ) |
|
|||
950 |
|
949 | |||
951 | return storemod.encodedstore(path, vfstype) |
|
950 | return storemod.encodedstore(path, vfstype) | |
952 |
|
951 | |||
@@ -1215,7 +1214,7 b' class localrepository(object):' | |||||
1215 | b'fncache', |
|
1214 | b'fncache', | |
1216 | requirementsmod.SHARED_REQUIREMENT, |
|
1215 | requirementsmod.SHARED_REQUIREMENT, | |
1217 | requirementsmod.RELATIVE_SHARED_REQUIREMENT, |
|
1216 | requirementsmod.RELATIVE_SHARED_REQUIREMENT, | |
1218 | b'dotencode', |
|
1217 | requirementsmod.DOTENCODE_REQUIREMENT, | |
1219 | requirementsmod.SPARSE_REQUIREMENT, |
|
1218 | requirementsmod.SPARSE_REQUIREMENT, | |
1220 | requirementsmod.INTERNAL_PHASE_REQUIREMENT, |
|
1219 | requirementsmod.INTERNAL_PHASE_REQUIREMENT, | |
1221 | } |
|
1220 | } | |
@@ -3416,7 +3415,7 b' def newreporequirements(ui, createopts):' | |||||
3416 | if ui.configbool(b'format', b'usefncache'): |
|
3415 | if ui.configbool(b'format', b'usefncache'): | |
3417 | requirements.add(b'fncache') |
|
3416 | requirements.add(b'fncache') | |
3418 | if ui.configbool(b'format', b'dotencode'): |
|
3417 | if ui.configbool(b'format', b'dotencode'): | |
3419 |
requirements.add( |
|
3418 | requirements.add(requirementsmod.DOTENCODE_REQUIREMENT) | |
3420 |
|
3419 | |||
3421 | compengines = ui.configlist(b'format', b'revlog-compression') |
|
3420 | compengines = ui.configlist(b'format', b'revlog-compression') | |
3422 | for compengine in compengines: |
|
3421 | for compengine in compengines: |
@@ -8,6 +8,7 b'' | |||||
8 | from __future__ import absolute_import |
|
8 | from __future__ import absolute_import | |
9 |
|
9 | |||
10 | GENERALDELTA_REQUIREMENT = b'generaldelta' |
|
10 | GENERALDELTA_REQUIREMENT = b'generaldelta' | |
|
11 | DOTENCODE_REQUIREMENT = b'dotencode' | |||
11 |
|
12 | |||
12 | # When narrowing is finalized and no longer subject to format changes, |
|
13 | # When narrowing is finalized and no longer subject to format changes, | |
13 | # we should move this to just "narrow" or similar. |
|
14 | # we should move this to just "narrow" or similar. |
@@ -217,7 +217,7 b' class fncache(requirementformatvariant):' | |||||
217 | class dotencode(requirementformatvariant): |
|
217 | class dotencode(requirementformatvariant): | |
218 | name = b'dotencode' |
|
218 | name = b'dotencode' | |
219 |
|
219 | |||
220 | _requirement = b'dotencode' |
|
220 | _requirement = requirements.DOTENCODE_REQUIREMENT | |
221 |
|
221 | |||
222 | default = True |
|
222 | default = True | |
223 |
|
223 | |||
@@ -934,7 +934,7 b' def supporteddestrequirements(repo):' | |||||
934 | Extensions should monkeypatch this to add their custom requirements. |
|
934 | Extensions should monkeypatch this to add their custom requirements. | |
935 | """ |
|
935 | """ | |
936 | supported = { |
|
936 | supported = { | |
937 | b'dotencode', |
|
937 | requirements.DOTENCODE_REQUIREMENT, | |
938 | b'fncache', |
|
938 | b'fncache', | |
939 | requirements.GENERALDELTA_REQUIREMENT, |
|
939 | requirements.GENERALDELTA_REQUIREMENT, | |
940 | requirements.REVLOGV1_REQUIREMENT, |
|
940 | requirements.REVLOGV1_REQUIREMENT, | |
@@ -965,7 +965,7 b' def allowednewrequirements(repo):' | |||||
965 | future, unknown requirements from accidentally being added. |
|
965 | future, unknown requirements from accidentally being added. | |
966 | """ |
|
966 | """ | |
967 | supported = { |
|
967 | supported = { | |
968 | b'dotencode', |
|
968 | requirements.DOTENCODE_REQUIREMENT, | |
969 | b'fncache', |
|
969 | b'fncache', | |
970 | requirements.GENERALDELTA_REQUIREMENT, |
|
970 | requirements.GENERALDELTA_REQUIREMENT, | |
971 | requirements.SPARSEREVLOG_REQUIREMENT, |
|
971 | requirements.SPARSEREVLOG_REQUIREMENT, |
General Comments 0
You need to be logged in to leave comments.
Login now