Show More
@@ -943,7 +943,7 b' def ensurerequirementscompatible(ui, req' | |||||
943 | def makestore(requirements, path, vfstype): |
|
943 | def makestore(requirements, path, vfstype): | |
944 | """Construct a storage object for a repository.""" |
|
944 | """Construct a storage object for a repository.""" | |
945 | if requirementsmod.STORE_REQUIREMENT in requirements: |
|
945 | if requirementsmod.STORE_REQUIREMENT in requirements: | |
946 | if b'fncache' in requirements: |
|
946 | if requirementsmod.FNCACHE_REQUIREMENT in requirements: | |
947 | dotencode = requirementsmod.DOTENCODE_REQUIREMENT in requirements |
|
947 | dotencode = requirementsmod.DOTENCODE_REQUIREMENT in requirements | |
948 | return storemod.fncachestore(path, vfstype, dotencode) |
|
948 | return storemod.fncachestore(path, vfstype, dotencode) | |
949 |
|
949 | |||
@@ -1211,7 +1211,7 b' class localrepository(object):' | |||||
1211 | } |
|
1211 | } | |
1212 | _basesupported = supportedformats | { |
|
1212 | _basesupported = supportedformats | { | |
1213 | requirementsmod.STORE_REQUIREMENT, |
|
1213 | requirementsmod.STORE_REQUIREMENT, | |
1214 | b'fncache', |
|
1214 | requirementsmod.FNCACHE_REQUIREMENT, | |
1215 | requirementsmod.SHARED_REQUIREMENT, |
|
1215 | requirementsmod.SHARED_REQUIREMENT, | |
1216 | requirementsmod.RELATIVE_SHARED_REQUIREMENT, |
|
1216 | requirementsmod.RELATIVE_SHARED_REQUIREMENT, | |
1217 | requirementsmod.DOTENCODE_REQUIREMENT, |
|
1217 | requirementsmod.DOTENCODE_REQUIREMENT, | |
@@ -3413,7 +3413,7 b' def newreporequirements(ui, createopts):' | |||||
3413 | if ui.configbool(b'format', b'usestore'): |
|
3413 | if ui.configbool(b'format', b'usestore'): | |
3414 | requirements.add(requirementsmod.STORE_REQUIREMENT) |
|
3414 | requirements.add(requirementsmod.STORE_REQUIREMENT) | |
3415 | if ui.configbool(b'format', b'usefncache'): |
|
3415 | if ui.configbool(b'format', b'usefncache'): | |
3416 | requirements.add(b'fncache') |
|
3416 | requirements.add(requirementsmod.FNCACHE_REQUIREMENT) | |
3417 | if ui.configbool(b'format', b'dotencode'): |
|
3417 | if ui.configbool(b'format', b'dotencode'): | |
3418 | requirements.add(requirementsmod.DOTENCODE_REQUIREMENT) |
|
3418 | requirements.add(requirementsmod.DOTENCODE_REQUIREMENT) | |
3419 |
|
3419 |
@@ -443,7 +443,7 b' def rebuildfncache(ui, repo):' | |||||
443 | """ |
|
443 | """ | |
444 | repo = repo.unfiltered() |
|
444 | repo = repo.unfiltered() | |
445 |
|
445 | |||
446 |
if |
|
446 | if requirements.FNCACHE_REQUIREMENT not in repo.requirements: | |
447 | ui.warn( |
|
447 | ui.warn( | |
448 | _( |
|
448 | _( | |
449 | b'(not rebuilding fncache because repository does not ' |
|
449 | b'(not rebuilding fncache because repository does not ' |
@@ -10,6 +10,7 b' from __future__ import absolute_import' | |||||
10 | GENERALDELTA_REQUIREMENT = b'generaldelta' |
|
10 | GENERALDELTA_REQUIREMENT = b'generaldelta' | |
11 | DOTENCODE_REQUIREMENT = b'dotencode' |
|
11 | DOTENCODE_REQUIREMENT = b'dotencode' | |
12 | STORE_REQUIREMENT = b'store' |
|
12 | STORE_REQUIREMENT = b'store' | |
|
13 | FNCACHE_REQUIREMENT = b'fncache' | |||
13 |
|
14 | |||
14 | # When narrowing is finalized and no longer subject to format changes, |
|
15 | # When narrowing is finalized and no longer subject to format changes, | |
15 | # we should move this to just "narrow" or similar. |
|
16 | # we should move this to just "narrow" or similar. |
@@ -197,7 +197,7 b' class requirementformatvariant(formatvar' | |||||
197 | class fncache(requirementformatvariant): |
|
197 | class fncache(requirementformatvariant): | |
198 | name = b'fncache' |
|
198 | name = b'fncache' | |
199 |
|
199 | |||
200 | _requirement = b'fncache' |
|
200 | _requirement = requirements.FNCACHE_REQUIREMENT | |
201 |
|
201 | |||
202 | default = True |
|
202 | default = True | |
203 |
|
203 | |||
@@ -935,7 +935,7 b' def supporteddestrequirements(repo):' | |||||
935 | """ |
|
935 | """ | |
936 | supported = { |
|
936 | supported = { | |
937 | requirements.DOTENCODE_REQUIREMENT, |
|
937 | requirements.DOTENCODE_REQUIREMENT, | |
938 | b'fncache', |
|
938 | requirements.FNCACHE_REQUIREMENT, | |
939 | requirements.GENERALDELTA_REQUIREMENT, |
|
939 | requirements.GENERALDELTA_REQUIREMENT, | |
940 | requirements.REVLOGV1_REQUIREMENT, |
|
940 | requirements.REVLOGV1_REQUIREMENT, | |
941 | requirements.STORE_REQUIREMENT, |
|
941 | requirements.STORE_REQUIREMENT, | |
@@ -966,7 +966,7 b' def allowednewrequirements(repo):' | |||||
966 | """ |
|
966 | """ | |
967 | supported = { |
|
967 | supported = { | |
968 | requirements.DOTENCODE_REQUIREMENT, |
|
968 | requirements.DOTENCODE_REQUIREMENT, | |
969 | b'fncache', |
|
969 | requirements.FNCACHE_REQUIREMENT, | |
970 | requirements.GENERALDELTA_REQUIREMENT, |
|
970 | requirements.GENERALDELTA_REQUIREMENT, | |
971 | requirements.SPARSEREVLOG_REQUIREMENT, |
|
971 | requirements.SPARSEREVLOG_REQUIREMENT, | |
972 | requirements.SIDEDATA_REQUIREMENT, |
|
972 | requirements.SIDEDATA_REQUIREMENT, |
General Comments 0
You need to be logged in to leave comments.
Login now