def __init__(self, repo, mapping, idmap=None, manifests=None): self.repo = repo self.mapping = mapping if idmap is None: self.idmap = MemoryIdmap() else: self.idmap = idmap self.manifests_vf = manifests self.manifests_lru = lru_cache.LRUCache() self.changelog = changelog_wrapper(self.repo, self.mapping)
def __init__(self, source, target): InterRepository.__init__(self, source, target) mapping = self.source.get_mapping() self._target_overlay = get_overlay(self.target, mapping) self._inventories = lru_cache.LRUCache(INVENTORY_CACHE_SIZE) self._revisions = {} self._files = {} self._text_metadata = {} self._symlink_targets = {} # Map mapping manifest ids to bzr revision ids self._manifest2rev_map = defaultdict(set)
def __init__(self, base, config): self.graph_cache = lru_cache.LRUCache(10) self.base = base self._config = config self.trunk_dir = config.get_option('trunk_dir')
def __init__(self, base, config): self.graph_cache = lru_cache.LRUCache(10) self.base = base self._config = config