/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to push.py

Move more logic to object store.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from dulwich.client import (
20
20
    SimpleFetchGraphWalker,
21
21
    )
22
 
from dulwich.repo import (
 
22
from dulwich.object_store import (
23
23
    MissingObjectFinder,
24
24
    )
25
25
 
222
222
            store = BazaarObjectStore(self.source, self.mapping)
223
223
            def generate_blob_contents(have, want):
224
224
                graphwalker = SimpleFetchGraphWalker(have, store.get_parents)
225
 
                objfinder = MissingObjectFinder(store, want, graphwalker)
226
 
                return store.iter_shas(iter(objfinder.next, None))
 
225
                return store.find_missing_objects(want, graphwalker)
227
226
            new_refs = self.target.send_pack(determine_wants, generate_blob_contents)
228
227
        finally:
229
228
            self.source.unlock()