Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

Support progress argument to generate_pack_contents.

Changeset e2dfb511a945

Parent cc42bf652c52

by Jelmer Vernooij

Changes to one file · Browse files at e2dfb511a945 Showing diff from parent cc42bf652c52 Diff from another changeset...

 
225
226
227
228
 
229
230
231
232
233
234
 
 
 
235
236
237
 
225
226
227
 
228
229
230
231
232
 
 
233
234
235
236
237
238
@@ -225,13 +225,14 @@
  """   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 - """ - return self.iter_shas(self.find_missing_objects(have, want)) + :param progress: Optional progress reporting method + """ + return self.iter_shas(self.find_missing_objects(have, want, progress))      class PackBasedObjectStore(BaseObjectStore):