MCPcopy Index your code
hub / github.com/borgbackup/borg / update_compatibility

Method update_compatibility

src/borg/cache.py:1054–1062  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1052 self.cache_config.mandatory_features = set()
1053
1054 def update_compatibility(self):
1055 operation_to_features_map = self.manifest.get_all_mandatory_features()
1056 my_features = Manifest.SUPPORTED_REPO_FEATURES
1057 repo_features = set()
1058 for operation, features in operation_to_features_map.items():
1059 repo_features.update(features)
1060
1061 self.cache_config.ignored_features.update(repo_features - my_features)
1062 self.cache_config.mandatory_features.update(repo_features & my_features)

Callers 1

__init__Method · 0.95

Calls 3

itemsMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected