Browse Source

Add ObjectStore.generate_pack_contents.

Jelmer Vernooij 16 years ago
parent
commit
68ef883539
1 changed files with 4 additions and 0 deletions
  1. 4 0
      dulwich/object_store.py

+ 4 - 0
dulwich/object_store.py

@@ -134,6 +134,10 @@ class BaseObjectStore(object):
         return ObjectStoreGraphWalker(heads, lambda sha: self[sha].parents)
 
 
+    def generate_pack_contents(self, have, want):
+        return self.iter_shas(self.find_missing_objects(have, want))
+
+
 class DiskObjectStore(BaseObjectStore):
     """Git-style object store that exists on disk."""