|
@@ -225,13 +225,14 @@ class BaseObjectStore(object):
|
|
|
"""
|
|
|
return ObjectStoreGraphWalker(heads, lambda sha: self[sha].parents)
|
|
|
|
|
|
- def generate_pack_contents(self, have, want):
|
|
|
+ def generate_pack_contents(self, have, want, progress=None):
|
|
|
"""Iterate over the contents of a pack file.
|
|
|
|
|
|
:param have: List of SHA1s of objects that should not be sent
|
|
|
:param want: List of SHA1s of objects that should be sent
|
|
|
+ :param progress: Optional progress reporting method
|
|
|
"""
|
|
|
- return self.iter_shas(self.find_missing_objects(have, want))
|
|
|
+ return self.iter_shas(self.find_missing_objects(have, want, progress))
|
|
|
|
|
|
|
|
|
class PackBasedObjectStore(BaseObjectStore):
|