Dulwich.io dulwich / master
Fix compatibility with older PackObjectStore subclasses. Jelmer Vernooń≥ 12 hours ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
311311
312312 class PackBasedObjectStore(BaseObjectStore):
313313
314 def __init__(self):
314 def __init__(self, pack_compression_level=-1):
315315 self._pack_cache = {}
316 self.pack_compression_level = pack_compression_level
316317
317318 @property
318319 def alternates(self):
522523 loose_compression_level: zlib compression level for loose objects
523524 pack_compression_level: zlib compression level for pack objects
524525 """
525 super(DiskObjectStore, self).__init__()
526 super(DiskObjectStore, self).__init__(
527 pack_compression_level=pack_compression_level)
526528 self.path = path
527529 self.pack_dir = os.path.join(self.path, PACKDIR)
528530 self._alternates = None
529531 self.loose_compression_level = loose_compression_level
530 self.pack_compression_level = pack_compression_level
531532
532533 def __repr__(self):
533534 return "<%s(%r)>" % (self.__class__.__name__, self.path)